Bug Tracker

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#8870 closed bug (duplicate)

Binding an event to an iframe window will throw an exception on unbind in ie

Reported by: jwyles@… Owned by:
Priority: high Milestone: 1.next
Component: event Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:


When binding an event to a window other than the current will throw an exception on unbind of that event in ie8, as it attempts to delete off the window.

Pull request to fix the issue can be found at https://github.com/jquery/jquery/pull/324 Following code is a test case:

<!DOCTYPE html>
    <iframe name="test"> 
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.js"></script>
        var testFrame = window.frames["test"],
            callback = function() { console.log("called"); };

Change History (5)

comment:1 Changed 6 years ago by timmywil

  • Component changed from unfiled to event

I created a test case, but haven't checked it in IE8 yet. http://jsfiddle.net/timmywil/wHmw2/

comment:2 Changed 6 years ago by timmywil

  • Priority changed from undecided to high
  • Status changed from new to open

Confirmed. Believe it happens on delete cache[ id ] in removeData

comment:3 Changed 6 years ago by jwyles@…

It is in removeData, the fix and test case is on the pull request linked.

comment:4 Changed 6 years ago by dmethvin

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

comment:5 Changed 6 years ago by dmethvin

Duplicate of #10080.

Note: See TracTickets for help on using tickets.