错误:拒绝访问属性“getComputedStyle”的权限(Error: Permission denied to access property “getComputedStyle”)

编程入门 行业动态 更新时间:2024-10-28 08:30:26
错误:拒绝访问属性“getComputedStyle”的权限(Error: Permission denied to access property “getComputedStyle”)

当我在另一个应用程序的iframe中打开我的应用程序(带有dojo)时出现此错误。 这个问题只出现在Firefox上(在Chrome中可行)。 我该如何解决这个问题?

I have this error when I open my application (with dojo) in a iframe from another application. This problem shows up only with Firefox (in Chrome it works).How can I resolve this problem?

最满意答案

此问题已在最新的dojo构建(1.12.1)中引入。

我们已经向dojo团队报告了这个问题,更多信息请点击此处:

https://github.com/dojo/dojo/commit/bfea978ffd6e7a0606ad677e457e7079e42a937d#commitcomment-20930838

https://bugs.dojotoolkit.org/ticket/18976

目前可能的解决方案是

坚持使用dojo版本1.11.1并等待dojo团队解决此问题。 覆盖dom-style.js并dom-style.js解决问题,这里的解决方案是在dom-style.js第49行引用win.global.window而不是dom-style.js 。

This issue has been introduced on the latest dojo build (1.12.1).

We have reported already this issue to the dojo team, more info here:

https://github.com/dojo/dojo/commit/bfea978ffd6e7a0606ad677e457e7079e42a937d#commitcomment-20930838

https://bugs.dojotoolkit.org/ticket/18976

Currently possible solutions are:

Stick on dojo version 1.11.1 and wait dojo team to fix this issue. Overwrite dom-style.js and fix the issue yourself, here a solution could be to to reference win.global.window instead of win.global.window.parent at line 49 of dom-style.js.

更多推荐

本文发布于:2023-08-02 05:33:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1370063.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:属性   权限   错误   getComputedStyle   Error

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!