[Webkit-unassigned] [Bug 7783] New: onclick handler set from popup doesn't work

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Wed Mar 15 07:52:53 PST 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=7783

           Summary: onclick handler set from popup doesn't work
           Product: WebKit
           Version: 417.x
          Platform: PC
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: JavaScript
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: brian.sweet at kaleidescape.com


The attached sample file has two links "CLICK ME" and "OPEN POPUP".  When you
first click "CLICK ME" an alert dialog will open and print "A".  Then if you
click "OPEN POPUP", a popup will open and inside the popup it calls a method
back on the parent page which changes the onclick handler of the "CLICK ME"
link.  The popup then closes itself.

In Safari, the "CLICK ME" link will no longer work.  In all of Firefox, IE and
Opera the "CLICK ME" link will now open an alert dialog and print "B".

My guess is that Safari is incorrectly cleaning up the onclick handler which
was assigned by the popup javascript code when the popup closes, even though
the call was made from the window.parent (main window) object and referenced a
function that is defined on the main window.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list