最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to reset netscape.security.PrivilegeManager.enablePrivilege? - Stack Overflow

programmeradmin2浏览0评论

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 badges
Add a ment  | 

2 Answers 2

Reset to default 3

Firefox 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).

发布评论

评论列表(0)

  1. 暂无评论