Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: fac0cb3cde15ef7c60bedd67d5a2be0f6028eebd
https://github.com/WebKit/WebKit/commit/fac0cb3cde15ef7c60bedd67d5a2be0f6028eebd
Author: Anthony Tarbinian <[email protected]>
Date: 2026-04-24 (Fri, 24 Apr 2026)
Changed paths:
M Source/WebCore/dom/Document.cpp
M Source/WebCore/loader/NavigationRequester.cpp
M Source/WebCore/loader/NavigationRequester.h
M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in
Log Message:
-----------
[Site Isolation] Replace parentFrameSecurityOrigin with precomputed bool in
NavigationRequester
https://bugs.webkit.org/show_bug.cgi?id=313181
rdar://175463992
Reviewed by Sihui Liu.
Follows up on https://commits.webkit.org/311805@main by replacing the
RefPtr<SecurityOrigin>
parentFrameSecurityOrigin field with a bool parentOriginIsSameAsTopOrigin.
The origin was only used in
isNavigationBlockedByThirdPartyIFrameRedirectBlocking to check
isSameOriginDomain against the top frame's origin. Since
NavigationRequester already carries topOrigin, precompute the
comparison at capture time in NavigationRequester::from() instead
of carrying a RefPtr<SecurityOrigin>.
No new tests, since this is an optimization.
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::isNavigationBlockedByThirdPartyIFrameRedirectBlocking):
* Source/WebCore/loader/NavigationRequester.cpp:
(WebCore::NavigationRequester::from):
* Source/WebCore/loader/NavigationRequester.h:
* Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in:
Canonical link: https://commits.webkit.org/312002@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications