<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>247545</bug_id>
          
          <creation_ts>2022-11-06 06:33:09 -0800</creation_ts>
          <short_desc>Hidden buttons can&apos;t be used as the submitter in an implicit submission</short_desc>
          <delta_ts>2022-11-17 17:32:20 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=243595</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Noam Rosenthal">noam</reporter>
          <assigned_to name="Ryosuke Niwa">rniwa</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>akeerthi</cc>
    
    <cc>cdumez</cc>
    
    <cc>karlcow</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1910627</commentid>
    <comment_count>0</comment_count>
      <attachid>463434</attachid>
    <who name="Noam Rosenthal">noam</who>
    <bug_when>2022-11-06 06:33:09 -0800</bug_when>
    <thetext>Created attachment 463434
Test case

When pressing enter in a text field, the first non-disabled submit button should be the submitter. However, in webkit and not in conformance with the spec, buttons with the &quot;hidden&quot; attribute are ignored.
See attached test case, works according to spec in Chromium &amp; Gecko
Spec: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#implicit-submission</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912083</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-11-13 06:34:19 -0800</bug_when>
    <thetext>&lt;rdar://problem/102290409&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913262</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2022-11-17 12:52:57 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/6600</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913343</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-11-17 17:32:18 -0800</bug_when>
    <thetext>Committed 256813@main (ad3421ff1186): &lt;https://commits.webkit.org/256813@main&gt;

Reviewed commits have been landed. Closing PR #6600 and removing active labels.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>463434</attachid>
            <date>2022-11-06 06:33:09 -0800</date>
            <delta_ts>2022-11-06 06:33:09 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>submitter.html</filename>
            <type>text/html</type>
            <size>438</size>
            <attacher name="Noam Rosenthal">noam</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+Cjxmb3JtIGlkPSJmb3JtIj4KICAgIDxpbnB1dCB0eXBlPSJ0ZXh0IiBu
YW1lPSJ0ZXh0MSIgdmFsdWU9IlByZXNzIEVudGVyIiBhdXRvZm9jdXM+CiAgICA8aW5wdXQgdHlw
ZT0ic3VibWl0IiBuYW1lPSJGaXJzdCBTdWJtaXQgQnV0dG9uIiB2YWx1ZT0iU3VjY2VzcyIgaGlk
ZGVuPgogICAgPGlucHV0IHR5cGU9InN1Ym1pdCIgbmFtZT0iU2Vjb25kIFN1Ym1pdCBCdXR0b24i
IHZhbHVlPSJGYWlsIiBzdHlsZT0idmlzaWJpbGl0eTogaGlkZGVuIj4KPC9mb3JtPgo8c2NyaXB0
PgogICAgZG9jdW1lbnQuZm9ybXMuZm9ybS5hZGRFdmVudExpc3RlbmVyKCJzdWJtaXQiLCBlID0+
IHsKICAgICAgICBlLnRhcmdldC5pbm5lclRleHQgPSBlLnN1Ym1pdHRlci5uYW1lOwogICAgICAg
IGUucHJldmVudERlZmF1bHQoKTsKICAgIH0pOwo8L3NjcmlwdD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>