Skip to main content

Bug Tracker

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:

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() {
Attachments (0)
Change History (13)

Changed June 03, 2013 03:48PM UTC by timmywil comment:1

component: unfiledselector
milestone: None1.10.2/2.0.3
priority: undecidedblocker
status: newopen

We should investigate this. I wouldn't be surprised if adding this event is an issue.

Changed June 03, 2013 03:50PM UTC by dmethvin comment:2

Right, #13936.

Changed June 03, 2013 04:27PM UTC by bergi 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: (and for v2)

Changed June 03, 2013 04:44PM UTC by timmywil 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 Timmy Willison comment:5

resolution: → fixed
status: openclosed

Update Sizzle. Avoid the use of frameElement. Fixes #13980.

Changeset: 6b46fde81923659a7c07d261c355287397ceb459

Changed June 04, 2013 11:20PM UTC by dmethvin comment:6

_comment0: Should this have been fixed? \ 1370401064210713

Should this have been fixed?

Edit: Looks like the -git file isn't being built.

Changed June 05, 2013 01:26PM UTC by dmethvin comment:7

#13990 is a duplicate of this ticket.

Changed June 12, 2013 06:13PM UTC by markelog comment:8

#14015 is a duplicate of this ticket.

Changed June 13, 2013 03:37PM UTC by timmywil comment:9

#14017 is a duplicate of this ticket.

Changed June 28, 2013 06:35PM UTC by timmywil 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:

Changed July 31, 2013 04:27AM UTC by Konstantin 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 gibson042 comment:13

#14386 is a duplicate of this ticket.