Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d6c7e00d0a91122f69e1d759ee338a9c40e7299a
https://github.com/WebKit/WebKit/commit/d6c7e00d0a91122f69e1d759ee338a9c40e7299a
Author: Charlie Wolfe <[email protected]>
Date: 2026-05-20 (Wed, 20 May 2026)
Changed paths:
A
LayoutTests/http/tests/resourceLoadStatistics/third-party-cookie-blocking-about-blank-popup-expected.txt
A
LayoutTests/http/tests/resourceLoadStatistics/third-party-cookie-blocking-about-blank-popup.html
M Source/WebCore/loader/FrameLoader.cpp
Log Message:
-----------
Block third-party cookies for requests from about:blank popups
https://bugs.webkit.org/show_bug.cgi?id=308445
rdar://168927271
Reviewed by Matthew Finkel.
When an about:blank popup made cross-origin requests, its firstPartyForCookies
was set to about:blank,
which has an empty registrable domain.
thirdPartyCookieBlockingDecisionForRequest() returns
ThirdPartyCookieBlockingDecision::None for empty domains, bypassing third-party
cookie blocking.
FrameLoader::updateFirstPartyForCookies() should inherit the opener's
firstPartyForCookies when the main
frame URL is an about:blank or other owner-inherited document.
*
LayoutTests/http/tests/resourceLoadStatistics/third-party-cookie-blocking-about-blank-popup-expected.txt:
Added.
*
LayoutTests/http/tests/resourceLoadStatistics/third-party-cookie-blocking-about-blank-popup.html:
Added.
* Source/WebCore/loader/FrameLoader.cpp:
(WebCore::FrameLoader::updateFirstPartyForCookies):
Originally-landed-as: 305413.366@rapid/safari-7624.2.5.110-branch
(8acf8433e6be). rdar://176067216
Canonical link: https://commits.webkit.org/313637@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications