Page MenuHomePhabricator

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


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.



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 created this task.Mar 13 2014, 2:38 PM
He7d3r updated the task description. (Show Details)Apr 7 2015, 5:08 PM
He7d3r set Security to None.
He7d3r updated the task description. (Show Details)Aug 22 2015, 2:17 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 22 2015, 2:17 PM
Sipun added a subscriber: Sipun.Oct 6 2015, 2:10 PM
Krinkle lowered the priority of this task from Medium to Low.Nov 18 2016, 7:28 PM
Krinkle removed a subscriber: wikibugs-l-list.
Restricted Application added a project: Performance-Team. · View Herald TranscriptApr 2 2020, 5:09 PM