<?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>317229</bug_id>
          
          <creation_ts>2026-06-16 13:01:32 -0700</creation_ts>
          <short_desc>[NavigationScheduler] history.back/forward/go(n) coalescing across processes via UIProcess session history traversal queue</short_desc>
          <delta_ts>2026-07-02 14:41:21 -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>WebCore 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>
          
          
          <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>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2221279</commentid>
    <comment_count>0</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2026-06-16 13:01:32 -0700</bug_when>
    <thetext>Follow-up to https://bugs.webkit.org/show_bug.cgi?id=317077.

Per HTML spec, history.back/forward/go(n) appends a task to the
top-level traversable&apos;s session history traversal queue. The previous
fix (bug 317077) implemented per-WebProcess coalescing by forwarding
to the top frame&apos;s NavigationScheduler when reachable in this
WebProcess. Under Site Isolation, when the top frame is a RemoteFrame
(a cross-site iframe initiates the traversal), the queue must live
above any single WebProcess.

Symptom:
- iframe (process A) history.back(); and main frame (process B)
  history.forward(); queued synchronously do not coalesce; both
  navigations execute and the user sees an extra load event the spec
  says should not occur.

Proposal:
Introduce SessionHistoryTraversalQueue, owned by WebPageProxy
(top-level traversable proxy). WebProcess NavigationScheduler routes
to it via a new IPC when the top frame is a RemoteFrame. The queue
accumulates pending delta and flushes on a 0-delay timer, calling
goToBackForwardItemAtIndex with the net delta (no-op when delta == 0,
matching &quot;going nowhere&quot;). Class naming leaves room for a future
spec-faithful &quot;sequential apply + synchronous queue jumping&quot;
implementation as a separate epic.

Out of scope for this bug: spec-correct top-level reload semantics
for history.go(0) (currently per-frame reload — see related followup).

Test plan:
- API tests covering cross-process iframe &lt;-&gt; main frame coalescing
  under Site Isolation enabled.
- WPT suites under
  imported/w3c/web-platform-tests/html/browsers/browsing-the-web/overlapping-navigations-and-traversals/
  with SI configuration.

Local prototype on branch eng/basuke/cross-process-traversal-queue
already passes a SiteIsolation.CrossProcessHistoryTraversalCoalesce
API test; bug 317077 API/WPT do not regress.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2221778</commentid>
    <comment_count>1</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2026-06-17 15:41:29 -0700</bug_when>
    <thetext>&lt;rdar://problem/179574582&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2221780</commentid>
    <comment_count>2</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2026-06-17 15:41:52 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/67386</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2222494</commentid>
    <comment_count>3</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2026-06-20 07:24:23 -0700</bug_when>
    <thetext>&lt;rdar://problem/179641336&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2224332</commentid>
    <comment_count>4</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2026-06-26 16:14:41 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/67459</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2224367</commentid>
    <comment_count>5</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2026-06-26 17:39:28 -0700</bug_when>
    <thetext>&lt;rdar://problem/179857636&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2224368</commentid>
    <comment_count>6</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2026-06-26 17:40:22 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/67993</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2226334</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-07-02 14:41:19 -0700</bug_when>
    <thetext>Committed 316426@main (7a422d312c3c): &lt;https://commits.webkit.org/316426@main&gt;

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

    </bug>

</bugzilla>