WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
316114
[Site Isolation] Evicting a cross-site page from the back/forward cache crashes the iframe process
https://bugs.webkit.org/show_bug.cgi?id=316114
Summary
[Site Isolation] Evicting a cross-site page from the back/forward cache crash...
Basuke Suzuki
Reported
2026-06-02 11:10:24 PDT
When a cross-site Site Isolation page is held in the back/forward cache via a SuspendedPageProxy, evicting that cache entry never sends ClearCachedPage to the iframe process. The entry's iframeProcesses() set (derived from m_cachedChildren) is empty for the cross-site SuspendedPageProxy path, so only the main process is cleared. The SuspendedPageProxy teardown then sends a plain Close to the iframe process, which runs WebPage::close() while its document is still in Document::InBackForwardCache state, tripping ASSERT(m_rootFrames.isEmpty()) in Page::~Page() (Source/WebCore/page/Page.cpp). This has been latent since the Phase 3 multi-process BFCache work landed; it becomes reachable by default once MultiProcessBackForwardCacheEnabled is auto-enabled under Site Isolation (
bug 314699
). Reachable by any eviction (capacity, expiration, or _clearBackForwardCache). Fix: in ~WebBackForwardCacheEntry, also clear the cached pages on the SuspendedPageProxy's subframe processes (for the matching frame item) before the Close, so the iframe leaves the back/forward cache cleanly.
Attachments
Add attachment
proposed patch, testcase, etc.
Basuke Suzuki
Comment 1
2026-06-02 13:30:20 PDT
<
rdar://problem/178543188
>
Basuke Suzuki
Comment 2
2026-06-02 13:30:38 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/66290
EWS
Comment 3
2026-06-03 16:33:46 PDT
Committed
314507@main
(5b5081adba8f): <
https://commits.webkit.org/314507@main
> Reviewed commits have been landed. Closing PR #66290 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug