Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a1457f792eed5fa20b8deb4f92f47fa5c0ca4043
https://github.com/WebKit/WebKit/commit/a1457f792eed5fa20b8deb4f92f47fa5c0ca4043
Author: Jessica Lee <[email protected]>
Date: 2026-09-10 (Thu, 10 Sep 2026)
Changed paths:
A
LayoutTests/http/tests/site-isolation/srcdoc-in-cross-origin-iframe-inherits-parent-origin-expected.txt
A
LayoutTests/http/tests/site-isolation/srcdoc-in-cross-origin-iframe-inherits-parent-origin.html
M Source/WebKit/UIProcess/WebPageProxy.cpp
M Source/WebKit/UIProcess/WebProcessPool.cpp
Log Message:
-----------
[Site Isolation] Expand about:blank process/origin checks to include
about:srcdoc
https://bugs.webkit.org/show_bug.cgi?id=323829
rdar://187064736
Reviewed by Alex Christensen.
When a cross-site iframe navigates to an about:srcdoc URL, the iframe's process
should transition from the
cross-site source process to the originating process because per spec, any
about:srcdoc or about:blank content
should inherit the origin of the frame that initiated navigation to
about:srcdoc. Currently, navigating to about:srcdoc
from a cross-site iframe results in the iframe remaining in the cross-site
source process rather than returning to the
originating process. Consequently, the iframe's contentDocument is null. The
fix is to add an additional check to
cover cases for about:srcdoc to WebKit's existing check for about:blank when
determining the process in
WebProcessPool::processForNavigationInternal or the origin in
WebPageProxy::continueNavigationInNewProcess.
Test:
http/tests/site-isolation/srcdoc-in-cross-origin-iframe-inherits-parent-origin.html
*
LayoutTests/http/tests/site-isolation/srcdoc-in-cross-origin-iframe-inherits-parent-origin-expected.txt:
Added.
*
LayoutTests/http/tests/site-isolation/srcdoc-in-cross-origin-iframe-inherits-parent-origin.html:
Added.
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::continueNavigationInNewProcess):
* Source/WebKit/UIProcess/WebProcessPool.cpp:
(WebKit::WebProcessPool::processForNavigationInternal):
Canonical link: https://commits.webkit.org/320845@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications