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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: javascript
Depends on:
  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: ---


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.