为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Enable privileged code by default. Firefox >= 22

  • 3 个回答
  • 3 人有此问题
  • 5 次查看
  • 最后回复者为 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.