Last modified: 2014-07-08 00:07:45 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T64605, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62605 - ResourceLoader: Debug mode should not execute scripts in the global scope
ResourceLoader: Debug mode should not execute scripts in the global scope
Status: NEW
Product: MediaWiki
Classification: Unclassified
ResourceLoader (Other open bugs)
1.23.0
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: javascript
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-13 14:38 UTC by Helder
Modified: 2014-07-08 00:07 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Helder 2014-03-13 14:38:20 UTC
If I create a gadget with "var TEST = true;" then window.TEST === undefined in production mode, but when I try to debug the gadget by adding debug=1 to the URL, the behavior changes and I get window.TEST === true;

The variable should still be local in debug mode.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links