Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Enable privileged code by default. Firefox >= 22

  • 3 回覆
  • 3 有這個問題
  • 3 次檢視
  • 最近回覆由 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.

由 BeoFF 於 修改

被選擇的解決方法

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.

從原來的回覆中察看解決方案 👍 0

所有回覆 (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

選擇的解決方法

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.