Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c82d7711129c02517cfc2fadf34330955c9d76b8
https://github.com/WebKit/WebKit/commit/c82d7711129c02517cfc2fadf34330955c9d76b8
Author: Basuke Suzuki <[email protected]>
Date: 2025-08-11 (Mon, 11 Aug 2025)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/navigation-api/ordering-and-transition/back-same-document-intercept-reject_no-currententrychange-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/navigation-api/ordering-and-transition/back-same-document-intercept_no-currententrychange-expected.txt
M Source/WebCore/loader/NavigationScheduler.cpp
M Source/WebCore/page/Navigation.cpp
M Source/WebCore/page/Navigation.h
Log Message:
-----------
[Navigation API] Fix URL update timing for intercepted traverse navigations.
https://bugs.webkit.org/show_bug.cgi?id=297000
rdar://157325299
Reviewed by Alex Christensen.
Intercepted traverse navigations don't update document URL before handlers run.
When traverse navigations (back/forward) are intercepted in the Navigation API,
the document URL should be updated before navigation handlers execute. This
ensures
handlers see the correct URL state during same-document traversals.
*
LayoutTests/imported/w3c/web-platform-tests/navigation-api/ordering-and-transition/back-same-document-intercept-reject_no-currententrychange-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/navigation-api/ordering-and-transition/back-same-document-intercept_no-currententrychange-expected.txt:
* Source/WebCore/loader/NavigationScheduler.cpp:
(WebCore::ScheduledHistoryNavigationByKey::findBackForwardItemByKey):
* Source/WebCore/page/Navigation.cpp:
(WebCore::Navigation::performTraversal):
(WebCore::Navigation::entryIndexOfKey const):
(WebCore::Navigation::hasEntryWithKey const):
(WebCore::Navigation::findEntryByKey const):
(WebCore::Navigation::traverseTo):
(WebCore::Navigation::innerDispatchNavigateEvent):
(WebCore::Navigation::findEntryByKey): Deleted.
* Source/WebCore/page/Navigation.h:
Canonical link: https://commits.webkit.org/298548@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes