WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
55649
onclick confirm() ignores first button click
https://bugs.webkit.org/show_bug.cgi?id=55649
Summary
onclick confirm() ignores first button click
Anthon Pang
Reported
2011-03-02 22:31:21 PST
If the click handler opens a confirmation dialog, the first button click (either "Ok" or "Cancel") is ignored. Bug found in Safari 5.0.3 and reproduceable in WebKit nightly
r79994
. (Not present in IE8, FF4b12, or Opera 11.01.) Test case: <html> <head><title>Ignore first click in confirm()</title></head> <body> <script type="text/javascript"> function doConfirm() { if (!confirm('test')) { return false; } } </script> <a href="#" onclick="javascript:doConfirm();">Click</a> </body> </html>
Attachments
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2022-08-06 06:53:53 PDT
I am unable to reproduce this bug from attached test case in
Comment 0
using Safari 15.6 on macOS 12.5 turned into JSFiddle: Link -
https://jsfiddle.net/Lx8ru9bg/show
It register my first click always and is same as other browsers (Chrome Canary 106 and Firefox Nightly 105). Going to mark this as "RESOLVED CONFIGURATION CHANGED". Thanks!
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