Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 8fe4e5b7fd722350a7e284d81cda34c0c79b6759 https://github.com/WebKit/WebKit/commit/8fe4e5b7fd722350a7e284d81cda34c0c79b6759 Author: Matthew Finkel <m_fin...@apple.com> Date: 2024-12-20 (Fri, 20 Dec 2024)
Changed paths: A LayoutTests/http/tests/resourceLoadStatistics/only-partitioned-third-party-cookies.https-expected.txt A LayoutTests/http/tests/resourceLoadStatistics/only-partitioned-third-party-cookies.https.html M LayoutTests/http/tests/resourceLoadStatistics/resources/set-cookie.py M LayoutTests/platform/glib/TestExpectations M LayoutTests/platform/ios/TestExpectations M LayoutTests/platform/mac-wk2/TestExpectations M LayoutTests/platform/win/TestExpectations M Source/WebCore/platform/network/NetworkStorageSession.cpp M Source/WebCore/platform/network/NetworkStorageSession.h M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in M Source/WebKit/UIProcess/API/C/WKWebsiteDataStoreRef.cpp M Source/WebKit/UIProcess/API/C/WKWebsiteDataStoreRef.h M Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm M Source/WebKit/UIProcess/WebProcessProxy.cpp M Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp M Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.h M Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl M Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp M Tools/WebKitTestRunner/InjectedBundle/TestRunner.h M Tools/WebKitTestRunner/TestController.cpp M Tools/WebKitTestRunner/TestController.h Log Message: ----------- Add Third Party cookie blocking mode that allows partitioned cookies https://bugs.webkit.org/show_bug.cgi?id=284556 rdar://141361030 Reviewed by Sihui Liu. We are currently lacking a third-party cookie blocking mode that blocks "third party cookies" (i.e., first party cookies from a third-party context) while allowing partitioned cookies - both creating and accessing. This patch introduces a new mode that fills this gap. Most of this patch is adapting the testing infrastructure to plumb the information from a layout test. * LayoutTests/http/tests/resourceLoadStatistics/only-partitioned-third-party-cookies.https-expected.txt: Added. * LayoutTests/http/tests/resourceLoadStatistics/only-partitioned-third-party-cookies.https.html: Added. * LayoutTests/http/tests/resourceLoadStatistics/resources/set-cookie.py: * LayoutTests/platform/glib/TestExpectations: * LayoutTests/platform/ios/TestExpectations: * LayoutTests/platform/mac-wk2/TestExpectations: * Source/WebCore/platform/network/NetworkStorageSession.cpp: (WebCore::NetworkStorageSession::thirdPartyCookieBlockingDecisionForRequest const): * Source/WebCore/platform/network/NetworkStorageSession.h: * Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in: * Source/WebKit/UIProcess/API/C/WKWebsiteDataStoreRef.cpp: (WKWebsiteDataStoreSetResourceLoadStatisticsShouldBlockThirdPartyCookiesForTesting): (WKWebsiteDataStoreStatisticsResetToConsistentState): * Source/WebKit/UIProcess/API/C/WKWebsiteDataStoreRef.h: * Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm: (-[WKWebsiteDataStore _setThirdPartyCookieBlockingMode:thirdPartyCookieBlockingMode:completionHandler:]): (-[WKWebsiteDataStore _setThirdPartyCookieBlockingMode:onlyOnSitesWithoutUserInteraction:completionHandler:]): * Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStoreInternal.h: * Source/WebKit/UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::addExistingWebPage): (WebKit::WebProcessProxy::removeWebPage): * Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp: (WebKit::WebsiteDataStore::setResourceLoadStatisticsShouldBlockThirdPartyCookiesForTesting): (WebKit::WebsiteDataStore::propagateSettingUpdates): (WebKit::WebsiteDataStore::propagateSettingUpdatesToNetworkProcess): Deleted. * Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.h: * Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: * Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp: (WTR::TestRunner::setStatisticsShouldBlockThirdPartyCookies): * Tools/WebKitTestRunner/InjectedBundle/TestRunner.h: * Tools/WebKitTestRunner/TestController.cpp: (WTR::TestController::didReceiveAsyncMessageFromInjectedBundle): (WTR::TestController::setStatisticsShouldBlockThirdPartyCookies): * Tools/WebKitTestRunner/TestController.h: Canonical link: https://commits.webkit.org/288160@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes