<?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>316429</bug_id>
          
          <creation_ts>2026-06-05 11:06:13 -0700</creation_ts>
          <short_desc>[Site Isolation] Mark MultiProcessBackForwardCacheEnabled as testable so test infrastructure auto-enables it</short_desc>
          <delta_ts>2026-06-05 22:42:08 -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 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>2218064</commentid>
    <comment_count>0</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2026-06-05 11:06:13 -0700</bug_when>
    <thetext>&lt;rdar://178835820&gt;

When Site Isolation is enabled, the product flips MultiProcessBackForwardCacheEnabled to true at WebProcessPool::createWebPage(). WebKitTestRunner re-applies its full preference set per test (resetPreferencesToConsistentValues), which clobbers that runtime flip and leaves the flag false during BFCache-under-Site-Isolation tests.

The workaround in bug 316344 added TestController::featuresImpliedBySiteIsolation() that mirrors the product coupling in the test runner.

Remove the duplication for this specific flag by changing its status in UnifiedWebPreferences.yaml from &apos;unstable&apos; to &apos;testable&apos;. From the YAML&apos;s own definition: &apos;testable: OFF by default. Enabled in test infrastructure only.&apos; This causes WebPreferences::enableAllExperimentalFeatures() to set it to true automatically for every WKTR run, regardless of Site Isolation, with no production impact.

No-op safety when Site Isolation is OFF:
- BackForwardCache::addIfCacheable&apos;s guard only triggers when SI is on.
- WebPageProxy::shouldUseBackForwardCache only consults MultiProcessBackForwardCacheEnabled when SI is on.
- The remaining MPBFCache-gated paths (suspendCurrentPageIfPossible, goToBackForwardItem) drive cross-site iframe orchestration; with SI off there are no cross-site iframe processes, so these collapse to the legacy behaviour.

UseUIProcessForBackForwardItemLoading is intentionally not changed here. It has non-Site-Isolation side effects and will be coupled via a separate WebPreferences::update() consolidation (a follow-up bug).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2218171</commentid>
    <comment_count>1</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2026-06-05 15:42:12 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/66592</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2218252</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-06-05 22:42:06 -0700</bug_when>
    <thetext>Committed 314689@main (0d7558ea5680): &lt;https://commits.webkit.org/314689@main&gt;

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

    </bug>

</bugzilla>