Bug Tracker

Opened 14 years ago

Closed 12 years ago

#4791 closed bug (invalid)

$(childWindow).unload registers an unload handler for the owner window

Reported by: kevin Owned by: kevin
Priority: major Milestone: 1.4
Component: event Version: 1.3.2
Keywords: unload Cc:
Blocked by: Blocking:


Registering an unload handler on a child window doesn't work.

The handler instead is attached to the parent window.

<!doctype html>
        <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.js"></script>
            function onclick() {
                var childWindow = window.open('about:blank');
                $(childWindow).unload(function() {alert('child window closed');});

        <a href="javascript:onclick();">click</a>

Change History (4)

comment:1 Changed 14 years ago by brandon

Resolution: duplicate
Status: newclosed

This was fixed with #4268

comment:2 Changed 14 years ago by kevin

Resolution: duplicate
Status: closedreopened

Reopening this--I can confirm that the fix in #4628 does not fix this issue.

comment:3 Changed 12 years ago by snover

Owner: changed from brandon to kevin
Status: reopenedpending

Please provide a test case demonstrating this issue.

comment:4 Changed 12 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Automatically closed due to 14 days of inactivity.

Note: See TracTickets for help on using tickets.