当我在另一个应用程序的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.更多推荐
发布评论