<?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>321255</bug_id>
          
          <creation_ts>2026-08-06 23:51:12 -0700</creation_ts>
          <short_desc>Fullscreen state is not cleared across processes when a site-isolated frame in the fullscreen chain unloads</short_desc>
          <delta_ts>2026-10-15 02:08:53 -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>WebKit Process Model</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <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>276855</blocked>
    
    <blocked>287102</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Marcos Caceres">marcosc</reporter>
          <assigned_to name="Marcos Caceres">marcosc</assigned_to>
          <cc>fred.wang</cc>
    
    <cc>nham</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2238222</commentid>
    <comment_count>0</comment_count>
    <who name="Marcos Caceres">marcosc</who>
    <bug_when>2026-08-06 23:51:12 -0700</bug_when>
    <thetext>Under site isolation, a frame in the fullscreen chain can unload without the embedding document&apos;s fullscreen state being cleared. The embedder is left with a viewport-sized iframe as document.fullscreenElement, taking every hit test and with no exit fullscreenchange, so the page underneath cannot be reached while its scripts keep running. An attacker-controlled frame that nests another frame can reach it.

Entering fullscreen flags every ancestor frame&apos;s owner element, and under site isolation those ancestors live in other web processes, flagged there over IPC. There is no exit-side counterpart to that enter-side IPC, and two paths leave it uncleared:

1. A cross-site self-navigation by the fullscreen subframe resolves to LoadWillContinueInAnotherProcess, so in the process owning the outgoing document the frame loader returns before dispatchDidStartProvisionalLoad and no exit request is made.

2. When a frame in the chain that does not own the fullscreen element navigates, that process never had m_element set, so willExitFullScreen early-returns, BeganExitFullScreen is never sent, and exitFullScreenInOtherProcesses never runs.

Not reachable in a shipping configuration: SiteIsolationEnabled is status: unstable, default false.

NOT REPRODUCED. The above is from reading the source. No site-isolated repro was built and no test was run against it. Existing coverage under LayoutTests/http/tests/site-isolation/ never navigates a frame in the fullscreen chain.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2238223</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-08-06 23:51:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/184307890&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2238807</commentid>
    <comment_count>2</comment_count>
    <who name="Marcos Caceres">marcosc</who>
    <bug_when>2026-08-09 21:28:59 -0700</bug_when>
    <thetext>Pull request: https://github.com/apple/WebKit/pull/6259</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2239212</commentid>
    <comment_count>3</comment_count>
    <who name="Marcos Caceres">marcosc</who>
    <bug_when>2026-08-11 04:11:05 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/71351</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>