gecko-dev/docshell
Julian Descottes 66eca9e88c Bug 1757457 - [devtools] Recompute mCanExecuteScripts after navigation r=smaug
I can see that after navigation, allowJavascript is correctly set for the browsing context, but it seems we need to call
RecomputeCanExecuteScripts() to force it to be applied to the new page. Not sure if doing this here makes sense or if it should be done earlier.

Also there are still other issues with this feature:
- closing the toolbox does not reload the page: meaning JavaScript remains disabled on the page
- similarly all pages which have been put in bfcache will retain the javascript disabled/enabled setting

For the first issue, I wonder if we should force a reload when closing the toolbox (iff javascript disabled was toggled).
And for the second issue, could we invalidate contexts put in bfcache for a given browsing context when we toggle allowJavaScript?

Olli: Does this change make sense at least to fix the basic issue?

Differential Revision: https://phabricator.services.mozilla.com/D169182
2023-02-13 17:52:51 +00:00
..
base Bug 1757457 - [devtools] Recompute mCanExecuteScripts after navigation r=smaug 2023-02-13 17:52:51 +00:00
build Bug 1805476 - Stub out an about:translations page with no real functionality; r=nordzilla 2023-02-06 21:56:37 +00:00
shistory Backed out changeset efdaaeb6ecf2 (bug 1804803) for causing Bug 1812257. a=backout 2023-01-25 11:41:08 +02:00
test Bug 1757457 - [devtools] Recompute mCanExecuteScripts after navigation r=smaug 2023-02-13 17:52:51 +00:00
moz.build Bug 1734217 - Merge all about:neterror front-end handling under toolkit. r=mkmelin,smaug,nalexander,flod,Gijs 2022-10-07 18:40:27 +00:00