Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#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 Timmy Willison

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.

comment:2 Changed 10 years ago by dmethvin

Right, #13936.

comment:3 Changed 10 years ago by bergi

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 Timmy Willison

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 Timmy Willison

Resolution: fixed
Status: openclosed

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

Changeset: 6b46fde81923659a7c07d261c355287397ceb459

comment:6 Changed 10 years ago by dmethvin

Should this have been fixed? http://jsfiddle.net/docluv/qx6gf/7/

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

Last edited 10 years ago by dmethvin (previous) (diff)

comment:7 Changed 10 years ago by dmethvin

#13990 is a duplicate of this ticket.

comment:8 Changed 10 years ago by markelog

#14015 is a duplicate of this ticket.

comment:9 Changed 10 years ago by Timmy Willison

#14017 is a duplicate of this ticket.

comment:10 Changed 10 years ago by Timmy Willison

#14081 is a duplicate of this ticket.

comment:11 Changed 10 years ago by desarrollo@…

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 Konstantin

Problem solved? How to fix a bug? I also have a problem when starting iframe app on the social network.

comment:13 Changed 10 years ago by gibson042

#14386 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.