Closed Bug 1394088 Opened 7 years ago Closed 7 years ago

Implement some way to toggle Javascript globally (maybe browser.privacy.websites.javascriptEnabled)

Categories

(WebExtensions :: General, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1363859

People

(Reporter: Manuel.Spam, Unassigned)

Details

For development purposes I regularly need to toggle Javascript.
I need this, for example, to compare website frameworks or templates when I want to verify that, for example, a navigation works even if the target browser has Javascript disabled.

I would like to create a simple "Javascript toggle button addon" for this. I've seen some hacks to allow this (like fiddling with the page CSP headers) but it would be much simpler and cleaner if there would be just some API that allows to control the "javascript.enabled" pref.

A possible place to add this could be "browser.privacy.websites.javascriptEnabled".
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.