Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2df02878fefcbd666fb0a2812c851a9558b0d805
https://github.com/WebKit/WebKit/commit/2df02878fefcbd666fb0a2812c851a9558b0d805
Author: Charlie Wolfe <[email protected]>
Date: 2026-09-16 (Wed, 16 Sep 2026)
Changed paths:
M LayoutTests/contentfiltering/block-after-add-data-expected.txt
M
LayoutTests/contentfiltering/block-after-add-data-then-allow-unblock-expected.txt
M
LayoutTests/contentfiltering/block-after-add-data-then-deny-unblock-expected.txt
M LayoutTests/contentfiltering/block-after-finished-adding-data-expected.txt
M
LayoutTests/contentfiltering/block-after-finished-adding-data-then-allow-unblock-expected.txt
M
LayoutTests/contentfiltering/block-after-finished-adding-data-then-deny-unblock-expected.txt
M LayoutTests/contentfiltering/block-after-response-expected.txt
M
LayoutTests/contentfiltering/block-after-response-then-allow-unblock-expected.txt
M
LayoutTests/contentfiltering/block-after-response-then-deny-unblock-expected.txt
M LayoutTests/contentfiltering/block-after-will-send-request-expected.txt
M
LayoutTests/contentfiltering/block-after-will-send-request-then-allow-unblock-expected.txt
M
LayoutTests/contentfiltering/block-after-will-send-request-then-deny-unblock-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/iframe-nosrc-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/iframe-src-204-fragment-expected.txt
M Source/WebCore/loader/NavigationScheduler.cpp
Log Message:
-----------
Replace history when navigating an initial about:blank subframe
https://bugs.webkit.org/show_bug.cgi?id=324079
rdar://187298226
Reviewed by Rupin Mittal.
Per the HTML navigation spec, history handling must be "replace" when the
target's active document
is still the initial about:blank document.
https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigate
FrameLoader::continueLoadURLIntoChildFrame() already does this for a frame's
initial src load, but
NavigationScheduler otherwise relies on the "onload has not been dispatched
yet" heuristic.
Make NavigationScheduler::mustLockBackForwardList() lock the back/forward list
whenever the target
is a subframe whose document loader is still for the initial about:blank
document, independent of
onload.
* LayoutTests/contentfiltering/block-after-add-data-expected.txt:
*
LayoutTests/contentfiltering/block-after-add-data-then-allow-unblock-expected.txt:
*
LayoutTests/contentfiltering/block-after-add-data-then-deny-unblock-expected.txt:
* LayoutTests/contentfiltering/block-after-finished-adding-data-expected.txt:
*
LayoutTests/contentfiltering/block-after-finished-adding-data-then-allow-unblock-expected.txt:
*
LayoutTests/contentfiltering/block-after-finished-adding-data-then-deny-unblock-expected.txt:
* LayoutTests/contentfiltering/block-after-response-expected.txt:
*
LayoutTests/contentfiltering/block-after-response-then-allow-unblock-expected.txt:
*
LayoutTests/contentfiltering/block-after-response-then-deny-unblock-expected.txt:
* LayoutTests/contentfiltering/block-after-will-send-request-expected.txt:
*
LayoutTests/contentfiltering/block-after-will-send-request-then-allow-unblock-expected.txt:
*
LayoutTests/contentfiltering/block-after-will-send-request-then-deny-unblock-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/iframe-nosrc-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/iframe-src-204-fragment-expected.txt:
* Source/WebCore/loader/NavigationScheduler.cpp:
(WebCore::NavigationScheduler::mustLockBackForwardList):
Canonical link: https://commits.webkit.org/321285@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications