Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d2ad35535d74eeab3e63c885b0cd676eac5df51c
https://github.com/WebKit/WebKit/commit/d2ad35535d74eeab3e63c885b0cd676eac5df51c
Author: Pouneh Bahrami <[email protected]>
Date: 2026-04-27 (Mon, 27 Apr 2026)
Changed paths:
M Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsStore.cpp
Log Message:
-----------
TestWebKitAPI.ResourceLoadStatistics.EnableResourceLoadStatisticsAfterNetworkProcessCreation
fails
rdar://169300958
https://bugs.webkit.org/show_bug.cgi?id=306643
Reviewed by Charlie Wolfe.
ResourceLoadStatisticsStore::aggregatedThirdPartyData uses the third-party
cookie blocking mode to decide whether to filter results by prevalence.
With ThirdPartyCookieBlockingMode::All it returns all third-party domains;
otherwise it returns only prevalent ones.
When OPT_IN_PARTITIONED_COOKIES is enabled, propagateSettingUpdates()
, fires during [webView loadHTMLString:...] in the test,automatically
upgrades All to AllExceptPartitioned when any page has
OptInPartitionedCookiesEnabled (which defaults to true). This caused
aggregatedThirdPartyData to incorrectly filter out non-prevalent domains
even though the intent was to block all third-party cookies.
This fix extends the "show all" condition to include AllExceptPartitioned,
which blocks all third-party cookies in the same way as All.
* Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsStore.cpp:
(WebKit::ResourceLoadStatisticsStore::aggregatedThirdPartyData const):
Canonical link: https://commits.webkit.org/312128@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications