[Webkit-unassigned] [Bug 243594] New: submit disabled="disabled" doesn't stop form from being posted with ENTER key

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 5 10:46:06 PDT 2022


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

            Bug ID: 243594
           Summary: submit disabled="disabled" doesn't stop form from
                    being posted with ENTER key
           Product: WebKit
           Version: Safari 15
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: zlip.792 at gmail.com

Hi Team,

Going through Chrome bugs - I came across another test cases (actually two of same thing) where Safari 15.6 behave different compared to other browsers.

Chrome Bug - https://bugs.chromium.org/p/chromium/issues/detail?id=37402

Chrome Commit - https://src.chromium.org/viewvc/blink?view=revision&revision=162095

_________

Test Case 1 - https://jsfiddle.net/WEM3x/

STEPS TO REPRODUCE:

1) Open above link and type something in the field

2) After typing - hit "Enter", Safari will navigate and show 404 error.

<< ACTUAL RESULT >>

Safari navigated upon hitting "Enter"

<< EXPEXTED RESULT / OTHER BROWSERS [Chrome Canary 106 and Firefox Nightly 105] >>

Don't navigate and ignore 'Enter'

__________-

Test Case 2 - https://jsfiddle.net/HhAAb/

STEPS TO REPRODUCE:

1) Open above link and type something in the field

2) After typing - hit "Enter", Safari will show dialog box showing 'form submitted'.

<< ACTUAL RESULT >>

Safari will show "form submitted" dialog

<< EXPEXTED RESULT / OTHER BROWSERS [Chrome Canary 106 and Firefox Nightly 105] >>

Does not show any dialog

______

If it is duplicate, please ignore because I tried to find other but only found bug 81422 but it didn't had any test case.

Appreciate if this can be fixed. Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220805/16cb11a7/attachment-0001.htm>


More information about the webkit-unassigned mailing list