Page MenuHomePhabricator

ResourceLoader: Debug mode should not execute scripts in the global scope
Closed, DuplicatePublic

Description

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.

Details

Reference
bz62605

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:06 AM
bzimport set Reference to bz62605.
bzimport added a subscriber: Unknown Object (MLST).
He7d3r set Security to None.
Krinkle lowered the priority of this task from Medium to Low.Nov 18 2016, 7:28 PM
Krinkle removed a subscriber: wikibugs-l-list.