[Webkit-unassigned] [Bug 55649] New: onclick confirm() ignores first button click

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 2 22:31:21 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=55649

           Summary: onclick confirm() ignores first button click
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows Vista
            Status: UNCONFIRMED
          Severity: Minor
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: anthon.pang at gmail.com


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>

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list