で動作するソーシャルネットワーク用のアプリを開発していIFrame
ます。このアプリは、Google Chrome および Microsoft Firefox ブラウザーでは問題なく動作しますが、Opera 12.15 JQuery ライブラリ v1.10.1 ではUnhandled error: Security error: attempted to read protected variable
、行1513のセキュリティ エラーで読み込みに失敗します。
スクリーンショットは次のとおりです。
Internet Explorer 10 にも同じバグが存在するようです。
それに対処する方法は?
アップデート:
jqueryのコードの1513 ~ 1517行にコメントを付けて、汚いハックを作成しました。
// Support: IE>8
// If iframe document is assigned to "document" variable and if iframe has been reloaded,
// IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936
/*if ( parent && parent.frameElement ) {
parent.attachEvent( "onbeforeunload", function() {
setDocument();
});
}*/
私のアプリの機能は現在動作しているようですが、おそらく JQuery リポジトリで問題を作成する必要があります...