<?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>315105</bug_id>
          
          <creation_ts>2026-05-19 09:22:16 -0700</creation_ts>
          <short_desc>[Site Isolation] Add WebFrameProxy children manipulation and WebBackForwardCacheEntry caching foundations</short_desc>
          <delta_ts>2026-05-22 00:08:15 -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>WebKit2</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>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Basuke Suzuki">basuke</reporter>
          <assigned_to name="Basuke Suzuki">basuke</assigned_to>
          <cc>kkinnunen</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2212071</commentid>
    <comment_count>0</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2026-05-19 09:22:16 -0700</bug_when>
    <thetext>Add the UIProcess-side foundations needed by the upcoming UI-driven iframe
orchestration for same-site BFCache with cross-site iframes:

  - WebFrameProxy::takeChildFrames / adoptChildFrames: API to detach the
    direct iframe children of a frame and reattach them later. Used to move
    the cross-site iframe WebFrameProxys off m_childFrames while the page
    is in BFCache and put them back on restore.

  - WebBackForwardCacheEntry: setCachedChildren / takeCachedChildren /
    hasCachedChildren / referencesIframeProcess. Lets the cache entry hold
    the detached children for the duration of the cache and answer
    process-death questions over the cached subtree.

  - WebBackForwardCache::removeEntriesForProcess: extend the
    process-termination cascade to walk
    WebBackForwardCacheEntry::referencesIframeProcess so an entry whose
    cached subtree references a now-dead WebProcess gets dropped.

  - WebProcess IPCs: rename ClearCachedPage → DiscardCachedPage; add
    DiscardCachedIframe (UI→iframe WP). Both are dispatched from
    ~WebBackForwardCacheEntry to evict the corresponding per-process cached
    state when the entry is destroyed.

This PR adds the API surface and wiring; the call sites that exercise it
(the cache-side walker, restore-side adopt, etc.) land in the feature-enable
PR.

No behavior change for users (cross-site iframe BFCache remains gated and
currently has no orchestration that uses these APIs).

rdar://177439863</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212827</commentid>
    <comment_count>1</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2026-05-20 22:59:27 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/65378</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2213199</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-05-22 00:08:13 -0700</bug_when>
    <thetext>Committed 313713@main (e16931a76e07): &lt;https://commits.webkit.org/313713@main&gt;

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

    </bug>

</bugzilla>