Side navigation
#13980 closed bug (fixed)
Opened June 02, 2013 07:51PM UTC
Closed June 03, 2013 08:11PM UTC
Last modified September 25, 2013 04:20PM UTC
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(); }); }
Attachments (0)
Change History (13)
Changed June 03, 2013 03:48PM UTC by comment:1
component: | unfiled → selector |
---|---|
milestone: | None → 1.10.2/2.0.3 |
priority: | undecided → blocker |
status: | new → open |
Changed June 03, 2013 04:27PM UTC by comment:3
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)
Changed June 03, 2013 04:44PM UTC by comment:4
I'm not sure we can access any property that we need in order to attach the event.
Changed June 03, 2013 08:11PM UTC by comment:5
resolution: | → fixed |
---|---|
status: | open → closed |
Update Sizzle. Avoid the use of frameElement. Fixes #13980.
Changeset: 6b46fde81923659a7c07d261c355287397ceb459
Changed June 04, 2013 11:20PM UTC by comment:6
_comment0: | Should this have been fixed? http://jsfiddle.net/docluv/qx6gf/7/ \ → 1370401064210713 |
---|
Should this have been fixed? http://jsfiddle.net/docluv/qx6gf/7/
Edit: Looks like the -git file isn't being built.
Changed June 28, 2013 06:35PM UTC by comment:10
#14081 is a duplicate of this ticket.
Changed July 22, 2013 08:38PM UTC by comment:11
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
Changed July 31, 2013 04:27AM UTC by comment:12
Problem solved? How to fix a bug? I also have a problem when starting iframe app on the social network.
Changed September 25, 2013 04:20PM UTC by comment:13
#14386 is a duplicate of this ticket.
We should investigate this. I wouldn't be surprised if adding this event is an issue.