Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 108a712706b4f2a3a922dea4e10dea4889db126b
      
https://github.com/WebKit/WebKit/commit/108a712706b4f2a3a922dea4e10dea4889db126b
  Author: Cole Carley <[email protected]>
  Date:   2026-05-11 (Mon, 11 May 2026)

  Changed paths:
    M Source/WebKit/UIProcess/Network/NetworkProcessProxy.cpp
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm

  Log Message:
  -----------
  [Site Isolation] Fix deleting website data for cross origin subframes
https://bugs.webkit.org/show_bug.cgi?id=314428
rdar://176577813

Reviewed by Ryosuke Niwa.

When a Clear-Site-Data: "cache" header is received,
deleteWebsiteDataInWebProcessesForOrigin sends
DeleteWebsiteDataForOrigin to all WebProcesses registered with the
WebsiteDataStore. In the site isolation case, a cross-origin subframe
lives in a separate WebProcess that may not be registered with the
data store. That process's MemoryCache never receives the delete
message, so stale cached resources from the cleared origin persist
there.

To fix this, we send the same DeleteWebsiteDataForOrigin message to
the data store's registered processes and it's page's
RemotePageProxy objects. This ensures the MemoryCache is cleared in
all processes that could hold resources for the target origin.

Test: Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm

* Source/WebKit/UIProcess/Network/NetworkProcessProxy.cpp:
(WebKit::NetworkProcessProxy::deleteWebsiteDataInWebProcessesForOrigin):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm:
(TestWebKitAPI::(SiteIsolation, ClearSiteDataClearsRemoteProcessMemoryCache)):

Canonical link: https://commits.webkit.org/313023@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to