<?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>314584</bug_id>
          
          <creation_ts>2026-05-11 14:41:56 -0700</creation_ts>
          <short_desc>[Site Isolation] WebPage::frameTreeSyncDataChangedInAnotherProcess should not ASSERT on stale cross-process IPC</short_desc>
          <delta_ts>2026-05-11 18:44: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>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>2209853</commentid>
    <comment_count>0</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2026-05-11 14:41:56 -0700</bug_when>
    <thetext>WebPage::frameTreeSyncDataChangedInAnotherProcess ASSERTs

    ASSERT(frame-&gt;page() == this);

But cross-process frame-tree sync messages can legitimately arrive at a
WebPage that no longer owns the WebFrame. This happens during multi-process
BFCache lifecycle transitions where two sibling WebPages exist in the same
process (one suspended, one active), and a sync message originally routed
for one view arrives at the other after a suspend/restore transition.

The ASSERT crashes the WebContent process in Debug. In Release the ASSERT is
compiled out and the function silently performs
`coreFrame-&gt;updateFrameTreeSyncData(data)` on a frame in a different WebPage,
which is harmless because the frame&apos;s own WebPage will receive the same
update through its own IPC routing.

Fix: convert the ASSERT to a soft-check that returns early on mismatch, so
the function consistently ignores stale/mis-routed updates in both Debug
and Release. Aligns with the defensive-coding pattern used elsewhere for
cross-process IPC routing during page lifecycle transitions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2209858</commentid>
    <comment_count>1</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2026-05-11 14:50:21 -0700</bug_when>
    <thetext>Tracked in rdar://176824128</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2209923</commentid>
    <comment_count>2</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2026-05-11 17:34:06 -0700</bug_when>
    <thetext>&lt;rdar://problem/176824128&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2209924</commentid>
    <comment_count>3</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2026-05-11 17:34:40 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/64718</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2209946</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-05-11 18:44:52 -0700</bug_when>
    <thetext>Committed 313048@main (e403c05b190e): &lt;https://commits.webkit.org/313048@main&gt;

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

    </bug>

</bugzilla>