admin管理员组文章数量:1379578
At same point, I believe I've clicked the "Deny" button when the message box appeared in FireFox asking me if I wanted to allow a site a privilege using the
netscape.security.PrivilegeManager.enablePrivilege()
method. Now, I cannot find how to reset this so that the message box will start appearing again at this specific site. I've checked Tools -> Options and about:config, but nothing. Does anyone know how to reset this? Or is there any other reason that the message box simply will not show and automatically throw an exception?
At same point, I believe I've clicked the "Deny" button when the message box appeared in FireFox asking me if I wanted to allow a site a privilege using the
netscape.security.PrivilegeManager.enablePrivilege()
method. Now, I cannot find how to reset this so that the message box will start appearing again at this specific site. I've checked Tools -> Options and about:config, but nothing. Does anyone know how to reset this? Or is there any other reason that the message box simply will not show and automatically throw an exception?
Share Improve this question edited Aug 21, 2009 at 14:53 Mike Hall asked Aug 20, 2009 at 22:45 Mike HallMike Hall 1,1512 gold badges10 silver badges24 bronze badges2 Answers
Reset to default 3Firefox saves the allow/deny permissions for websites using PrivilegeManager in the prefs.js file in your profile directory. A permanent DENY setting for the sample page (jar:http://www.mozilla/projects/security/ponents/signed-script-demo.jar!/signed-script-demo.html) added these user preferences:
user_pref("capability.principal.certificate.p0.denied", "UniversalPreferencesRead");
user_pref("capability.principal.certificate.p0.id", "C3:B3:11:2F:F2:CB:3B:86:A3:66:11:DD:C2:42:0F:7F:98:C8:21:02");
user_pref("capability.principal.certificate.p0.subjectName", "CN=Netscape Communications Corp.,OU=For internal testing only,O=Netscape Communications Corp.,L=Mountain View,ST=California,C=US");
You'll have to find the ones for the website that you accidentally denied, and delete the three settings for that site. Exit Firefox before you change them, or it will get overwritten.
Go to Tools -> Clear Recent History -> press the details button, check Site Preferences/Settings(I dont know how it is in english, but you will find the right checkbox easy) and then click Erase Now(or Ok, whatever).
本文标签: javascriptHow to reset netscapesecurityPrivilegeManagerenablePrivilegeStack Overflow
版权声明:本文标题:javascript - How to reset netscape.security.PrivilegeManager.enablePrivilege? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744490637a2608712.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论