Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 610ee4279928b982c51d67e683aa19b972a1cfdc
      
https://github.com/WebKit/WebKit/commit/610ee4279928b982c51d67e683aa19b972a1cfdc
  Author: Charlie Wolfe <[email protected]>
  Date:   2026-05-13 (Wed, 13 May 2026)

  Changed paths:
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Source/WebKit/WebProcess/WebPage/WebPage.cpp
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ResourceLoadStatistics.mm

  Log Message:
  -----------
  [Site Isolation] `ResourceLoadStatistics.BackForwardPerPageData` fails
https://bugs.webkit.org/show_bug.cgi?id=314524
rdar://173034060

Reviewed by Rupin Mittal.

This test needed the following fixes to pass with site isolation:
 - Query and aggregate results from all web content processes in 
getLoadedSubresourceDomains.
 - Use the main frame's security origin instead of its URL to filter 
subresource domains, since
   remote frame URLs are not available.
 - Only clear loadedSubresourceDomains on main frame commits, since this is 
page-level data meant to
   track which third-party domains a page loaded.
 - Wait for subframe loads to complete before checking domains, since they will 
not load instantly
   with the back-forward cache disabled.

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

* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::getLoadedSubresourceDomains):
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::didCommitLoad):
(WebKit::WebPage::didLoadFromRegistrableDomain):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ResourceLoadStatistics.mm:
(TEST(ResourceLoadStatistics, BackForwardPerPageData)):

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



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

Reply via email to