<?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>249627</bug_id>
          
          <creation_ts>2022-12-19 18:02:30 -0800</creation_ts>
          <short_desc>option and optgroup shouldn&apos;t be focusable if they are hidden or in a menulist</short_desc>
          <delta_ts>2023-05-31 14:40:17 -0700</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>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <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>1920668</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-12-19 18:02:30 -0800</bug_when>
    <thetext>Hi Team,

While going through Blink&apos;s commit, I came across few more test cases failure:

Test Case - https://jsfiddle.net/n80ompfr/show

^ Safari 16.2 and STP160 both fail a single test case while Chrome Canary 111 and Firefox Nightly 110 passes all.

Test Case - 2 - https://jsfiddle.net/grwehdk6/show

^ Safari 16.2 and STP160 both fail two test cases while Chrome Canary 111 and Firefox Nightly 110 passes all.

Blink Commit - https://chromium.googlesource.com/chromium/blink/+/db4eb7807f1591c3beebe2e40a3c57d9e57a3c85

Just wanted to raise this bug so we can track this. Might try to do PR later.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920689</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2022-12-19 19:29:13 -0800</bug_when>
    <thetext>Seems sensible to merge this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1921961</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-12-26 18:03:15 -0800</bug_when>
    <thetext>&lt;rdar://problem/103717395&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1958867</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-30 13:36:33 -0700</bug_when>
    <thetext>Just need to add:

RefPtr select = ownerSelectElement();
    if (select &amp;&amp; select-&gt;usesMenuList())
        return false;
    return HTMLElement::isFocusable();

in HTMLOptionElement::isFocusable() and HTMLOptGroupElement::isFocusable(), no need to introduce new functions like Blink patch.

Just fixed it locally, will do PR shortly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1958878</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-30 13:55:39 -0700</bug_when>
    <thetext>Fingers Crossed - https://github.com/WebKit/WebKit/pull/14507</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1959155</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-05-31 14:40:15 -0700</bug_when>
    <thetext>Committed 264755@main (b9e0d14b62e6): &lt;https://commits.webkit.org/264755@main&gt;

Reviewed commits have been landed. Closing PR #14507 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>