Bug Tracker

Ticket #13980 (closed bug: fixed)

Opened 17 months ago

Last modified 13 months ago

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:
Blocking: Blocked by:

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

comment:1 Changed 17 months ago by timmywil

  • Priority changed from undecided to blocker
  • Status changed from new to open
  • Component changed from unfiled to selector
  • Milestone changed from None to 1.10.2/2.0.3

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

comment:2 Changed 17 months ago by dmethvin

Right, #13936.

comment:3 Changed 17 months 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 17 months ago by timmywil

I'm not sure we can access any property that we need in order to attach the event.

comment:5 Changed 17 months ago by Timmy Willison

  • Status changed from open to closed
  • Resolution set to fixed

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

Changeset: 6b46fde81923659a7c07d261c355287397ceb459

comment:6 Changed 17 months 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 17 months ago by dmethvin (previous) (diff)

comment:7 Changed 17 months ago by dmethvin

#13990 is a duplicate of this ticket.

comment:8 Changed 17 months ago by markelog

#14015 is a duplicate of this ticket.

comment:9 Changed 17 months ago by timmywil

#14017 is a duplicate of this ticket.

comment:10 Changed 16 months ago by timmywil

#14081 is a duplicate of this ticket.

comment:11 Changed 15 months 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 15 months 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 13 months ago by gibson042

#14386 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.