<?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>299626</bug_id>
          
          <creation_ts>2025-09-26 12:15:44 -0700</creation_ts>
          <short_desc>[iOS] Element.requestFullscreen will use outdated hardware keyboard availability information if keyboard disconnects during browsing session</short_desc>
          <delta_ts>2025-12-05 04:46:59 -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>WebKit Misc.</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=264843</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=299614</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>303622</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Abrar Rahman Protyasha">a_protyasha</reporter>
          <assigned_to name="Byungseon(Sun) Shin">sun.shin</assigned_to>
          <cc>a_protyasha</cc>
    
    <cc>bfulgham</cc>
    
    <cc>sun.shin</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2146272</commentid>
    <comment_count>0</comment_count>
    <who name="Abrar Rahman Protyasha">a_protyasha</who>
    <bug_when>2025-09-26 12:15:44 -0700</bug_when>
    <thetext>Currently, we mirror `hardwareKeyboardAttached` state between WebKit::WebPage and WebCore::Page by plumbing down from WebKit with a call into Page::setHardwareKeyboardAttached(). Unfortunately, we only propagate this information _once_ during WebPage creation. This means that this information can get outdated when hardware keyboard state changes (i.e. calls into hardwareKeyboardAvailabilityChanged).

We should either (a) plug all the holes where hardware keyboard state is not being propagated or, better yet, (b) have WebCore::Page just key off of WebPage state by going through ChromeClient.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2146274</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-09-26 12:17:34 -0700</bug_when>
    <thetext>&lt;rdar://problem/161429040&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2146275</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-09-26 12:17:34 -0700</bug_when>
    <thetext>&lt;rdar://problem/161429045&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2146278</commentid>
    <comment_count>3</comment_count>
    <who name="Abrar Rahman Protyasha">a_protyasha</who>
    <bug_when>2025-09-26 12:18:30 -0700</bug_when>
    <thetext>rdar://161429040</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2147160</commentid>
    <comment_count>4</comment_count>
    <who name="Byungseon(Sun) Shin">sun.shin</who>
    <bug_when>2025-09-30 08:08:58 -0700</bug_when>
    <thetext>@abra thanks for the catch. Will update the implementation soon by the guidance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2151412</commentid>
    <comment_count>5</comment_count>
    <who name="Byungseon(Sun) Shin">sun.shin</who>
    <bug_when>2025-10-15 13:49:22 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/52418</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2159030</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-11-15 13:40:35 -0800</bug_when>
    <thetext>Committed 303080@main (b40d0b9064e6): &lt;https://commits.webkit.org/303080@main&gt;

Reviewed commits have been landed. Closing PR #52418 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2159032</commentid>
    <comment_count>7</comment_count>
    <who name="Byungseon(Sun) Shin">sun.shin</who>
    <bug_when>2025-11-15 13:43:19 -0800</bug_when>
    <thetext>*** Bug 299614 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>