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 badges1 Answer
Reset to default 7It 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
版权声明:本文标题:javascript - UniversalXPConnect permission error in firefox 17 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745237561a2649125.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论