This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Enable privileged code by default. Firefox >= 22

  • 3 replies
  • 3 have this problem
  • 3 views
  • Paskiausią atsakymą parašė cor-el

more options

Shortly: How can I enable privileged code by default (in Firefox 22, or newer)? Since it is only for local purposes on several computers in laboratory - I can edit any Firefox files.

In case of questions "why?" or answers unrelated to Firefox: I am using some privileged code from normal website (opened locally from file on local computers only) and since netscape.security.PrivilegeManager.enablePrivilege vanished from Firefox I cannot run privileged code from normal content after versions 17. I need to enable some features like drawWindow and file access from normal page by default. I use scripts that allow user (in laboratory on lab computers) to enter normal websites, collect data about user activities, log what was clicked, than take screenshots of webpage after action, than save pictures to hard drive. Users are essentially testing given webpages - UX tests and Firefox greatly help(ed?) with such tests.

But I really do not have such possibilities like rewrite everything to plugins or take screenshots manually or from something like Greasemonkey. Other options like camera or software to record screen are also not possible.

Thanks in advance.

Shortly: How can I enable privileged code by default (in Firefox 22, or newer)? Since it is only for local purposes on several computers in laboratory - I can edit any Firefox files. In case of questions "why?" or answers unrelated to Firefox: I am using some privileged code from normal website (opened locally from file on local computers only) and since netscape.security.PrivilegeManager.enablePrivilege vanished from Firefox I cannot run privileged code from normal content after versions 17. I need to enable some features like drawWindow and file access from normal page by default. I use scripts that allow user (in laboratory on lab computers) to enter normal websites, collect data about user activities, log what was clicked, than take screenshots of webpage after action, than save pictures to hard drive. Users are essentially testing given webpages - UX tests and Firefox greatly help(ed?) with such tests. But I really do not have such possibilities like rewrite everything to plugins or take screenshots manually or from something like Greasemonkey. Other options like camera or software to record screen are also not possible. Thanks in advance.

Modified by BeoFF

Chosen solution

That is not meant as humor, but meant to be taken quite seriously.
If someone on internet would ask you to create a pref with this name then you most likely wouldn't do this.

Skaityti atsakymą kartu su kontekstu 👍 0

All Replies (3)

more options

Firefox 19+ versions still have support for this and hide it behind a pref with a long name:

(Fx 18-: security.enablePrivilege.enable_for_tests)

more options

Looks like some of the Mozilla developers have a wry sense of humor.

more options

Chosen Solution

That is not meant as humor, but meant to be taken quite seriously.
If someone on internet would ask you to create a pref with this name then you most likely wouldn't do this.