admin管理员组

文章数量:1415696

I have a small web JS, that copy and inserts some form data to and from the iframe. But it doesn't work in Firefox 17. I'm using this code:

"netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");"

What could be wrong? Is there any workaround?

I have a small web JS, that copy and inserts some form data to and from the iframe. But it doesn't work in Firefox 17. I'm using this code:

"netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");"

What could be wrong? Is there any workaround?

Share Improve this question edited Dec 20, 2012 at 7:29 Droidik asked Dec 20, 2012 at 0:37 DroidikDroidik 1771 gold badge4 silver badges18 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

It was removed from running on the web with Firefox 17

https://developer.mozilla/en-US/docs/Bypassing_Security_Restrictions_and_Signing_Code

Early versions of Firefox allowed web sites to segregate principals using signed scripts, and request extra permissions for scopes within signed scripts using a function called enablePrivelege. These feature was not used much (aside from abuse), and its plexity made performance improvements difficult. Signed script segregation was removed in bug 726125, the enablePrivilege prompt was removed in bug 750859, and enablePrivilege itself was nerfed in bug 757046.

EnablePrivilege is disabled in Firefox 15 and will be removed in Firefox 17.

Sites that require additional permissions should now ask Firefox users to install an extension, which can interact with non-privileged pages if needed.

And a discussion on making an extension: http://support.mozilla/en-US/questions/936845

本文标签: javascriptUniversalXPConnect permission error in firefox 17Stack Overflow