#13980 closed bug (fixed)
JQuery library does not load in Opera 12.15 and IE 10 in IFrame which content is loaded from external domain
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | blocker | Milestone: | 1.10.2/2.0.3 |
Component: | selector | Version: | 1.10.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
In IFrame where the content is loaded from the external domain, JQuery v1.10.1 fails to load in Opera 12.15 and IE 10 with error "Unhandled error: Security error: attempted to read protected variable" on the line 1513.
The bug was appeared in social network app launching in IFrame.
It works fine in Mozilla Firefox and Google Chrome. It works in Opera after removing of the following code.
// 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(); }); }
Change History (13)
comment:1 Changed 10 years ago by
Component: | unfiled → selector |
---|---|
Milestone: | None → 1.10.2/2.0.3 |
Priority: | undecided → blocker |
Status: | new → open |
comment:3 Changed 10 years ago by
Nah, it seems to happen when accessing the frameElement
property. Jsfiddle (which uses jQuery in an iframe) makes it easy to build a demonstration: http://jsfiddle.net/aDG8F/ (and http://jsfiddle.net/aDG8F/2/ for v2)
comment:4 Changed 10 years ago by
I'm not sure we can access any property that we need in order to attach the event.
comment:5 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | open → closed |
Update Sizzle. Avoid the use of frameElement. Fixes #13980.
Changeset: 6b46fde81923659a7c07d261c355287397ceb459
comment:6 Changed 10 years ago by
Should this have been fixed? http://jsfiddle.net/docluv/qx6gf/7/
Edit: Looks like the -git file isn't being built.
comment:11 Changed 10 years ago by
It is not fixed!!! In Opera 12.15 is throwing the error!!
See image: https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-prn2/1069406_10151762588694002_1470240519_n.jpg
comment:12 Changed 10 years ago by
Problem solved? How to fix a bug? I also have a problem when starting iframe app on the social network.
We should investigate this. I wouldn't be surprised if adding this event is an issue.