Files
firefox/devtools/server
Nicolas Chevobbe 043dc6950e Bug 1434563 - Do not execute helper if the function is defined in content; r=Honza.
If the content page sets a global keys, values, , … function,
calling them in the jsterm won't work because the helpers we
provide will override them.
This is very disturbing when debugging code, and this patch
fixes this issue by looking at all the registered helpers
and clearing helpers bindings if a function with the same
name as an helper exists in the content page.
This is not done for the print helper though, since the
print function on window always exists.
We also take this as an opportunity to only return unique
item in the autocomplete server function so we don't show
a function twice in the popup if it is defined in content
and as an helper.

The test that was asserting this behaviour for $ and $$ is
renamed and modified to test all the helpers.

MozReview-Commit-ID: 1bTliGUb39U

Differential Revision: https://phabricator.services.mozilla.com/D2156
2018-07-18 11:51:17 +00:00
..