firefox 17中的UniversalXPConnect权限错误 [英] UniversalXPConnect permission error in firefox 17

查看:83
本文介绍了firefox 17中的UniversalXPConnect权限错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个小型的Web JS,它可以在iframe中复制和插入一些表单数据. 但这在Firefox 17中不起作用.我正在使用以下代码:

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?

推荐答案

使用Firefox 17在网络上运行时已将其删除

It was removed from running on the web with Firefox 17

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

Firefox的早期版本允许网站分隔主体 使用签名的脚本,并请求范围内的额外权限 使用称为enablePrivelege的函数对脚本进行签名.这些功能 (除了滥用)使用得很少,而且它的复杂性 性能改进困难.签名脚本隔离原为 已在错误726125中删除,在错误中已删除了enablePrivilege提示 750859,并且enablePrivilege本身在错误757046中被削弱.

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 complexity 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在Firefox 15中被禁用,并将在 Firefox 17.

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

需要其他权限的站点现在应询问Firefox用户 安装扩展程序,该扩展程序可以与非特权页面进行交互 如果需要的话.

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

以及有关扩展的讨论: http://support.mozilla.org/en-US/questions /936845

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

这篇关于firefox 17中的UniversalXPConnect权限错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆