<?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>315664</bug_id>
          
          <creation_ts>2026-05-27 08:24:44 -0700</creation_ts>
          <short_desc>[Site Isolation] iframe monitor tests are failing</short_desc>
          <delta_ts>2026-05-28 10:24:54 -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 Nightly Build</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>InRadar</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anthony Tarbinian">a.tarbinian</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>nham</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2214973</commentid>
    <comment_count>0</comment_count>
    <who name="Anthony Tarbinian">a.tarbinian</who>
    <bug_when>2026-05-27 08:24:44 -0700</bug_when>
    <thetext>The following tests are failing with site isolation:

http/tests/iframe-monitor/eligibility.html
http/tests/iframe-monitor/iframe-unload.html
http/tests/iframe-monitor/throttler.html
http/tests/iframe-monitor/workers/service-worker-not-count-twice.html
http/tests/iframe-monitor/workers/service-worker.html
http/tests/iframe-monitor/workers/shared-worker.html

Note that this doesn&apos;t cover http/tests/iframe-memory-monitor/media-video-autoplay-in-frames.html

These 6 tests in http/tests/iframe-monitor/ timed out under 
--site-isolation. The tests use a WebKit feature
which enforces a resource usage threshold for iframes. When an 
iframe goes over the resource usage threshold, the iframe is killed
by getting swapped out with a gray placeholder iframe that reads: 
&quot;this frame is hidden&quot;.

The first bug was that WebLocalFrameLoaderClient::didExceedNetworkUsageThreshold
assumes that the main frame is a local frame. This isn&apos;t true with
site isolation. It uses the local main frame to grab the URL of the
main frame and send it via the Messages::NetworkConnectionToWebProcess::ShouldOffloadIFrameForHost
IPC message.

With site isolation enabled, the main frame&apos;s document wasn&apos;t available
and didExceedNetworkUsageThreshold returned early, never sending the
NetworkConnectionToWebProcess::ShouldOffloadIFrameForHost IPC message.

The second bug was that LocalFrame::showResourceMonitoringError
tried to use ownerElement() to set the srcdoc of the iframe.
With site isolation enabled, the owner element was in a different process
and was nullptr.

The third bug, involves settings on internals.* to not be propagated 
to all processes which is problematic for site isolation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2214974</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-05-27 08:24:50 -0700</bug_when>
    <thetext>&lt;rdar://problem/178052024&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2215060</commentid>
    <comment_count>2</comment_count>
    <who name="Anthony Tarbinian">a.tarbinian</who>
    <bug_when>2026-05-27 12:57:31 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/65806</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2215359</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-05-28 10:24:52 -0700</bug_when>
    <thetext>Committed 314057@main (270a9fa5f162): &lt;https://commits.webkit.org/314057@main&gt;

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

    </bug>

</bugzilla>