gpt4 book ai didi

javascript - firefox 17 中的 UniversalXPConnect 权限错误

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:35:36 27 4
gpt4 key购买 nike

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

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

有什么问题吗?有什么解决方法吗?

最佳答案

它已从 Firefox 17 的网络上运行中移除

https://developer.mozilla.org/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 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 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.

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

关于javascript - firefox 17 中的 UniversalXPConnect 权限错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13963570/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com