WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
7783
onclick handler set from popup doesn't work
https://bugs.webkit.org/show_bug.cgi?id=7783
Summary
onclick handler set from popup doesn't work
Brian Sweet
Reported
2006-03-15 07:52:52 PST
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.
Attachments
Example showing onclick set from popup failure in Safari
(998 bytes, text/html)
2006-03-15 07:54 PST
,
Brian Sweet
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Brian Sweet
Comment 1
2006-03-15 07:54:23 PST
Created
attachment 7087
[details]
Example showing onclick set from popup failure in Safari
Alexey Proskuryakov
Comment 2
2006-08-28 22:12:34 PDT
See also:
bug 3791
.
David Kilzer (:ddkilzer)
Comment 3
2008-02-22 17:22:59 PST
Test case works for me with a local debug build of WebKit
r30458
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug