From a76eaf472e0c041e17a79cc21d2f862b601fa8f8 Mon Sep 17 00:00:00 2001 From: Nate Chapin Date: Thu, 24 Mar 2022 11:43:13 +0000 Subject: [PATCH] Bug 1758809 [wpt PR 33141] - Fire popstate for navigations intercepted by appHistory.transitionWhile(), a=testonly Automatic update from web-platform-tests Fire popstate for navigations intercepted by appHistory.transitionWhile() Currently the logic for firing popstate lives in FrameLoader::DidFinishSameDocumentNavigation, which is only fired for fragment navigations (including back/forward ones). This CL moves it to DocumentLoader::UpdateForSameDocumentNavigaiton (which is called for all same-document navigations). Now that FrameLoader::DidFinishSameDocumentNavigation only handles scrolling behavior (scroll restore and fragment processing), rename it to ProcessScrollForSameDocumentNavigation. Change-Id: I103cdf7fb7407bc8c35f13133cd8dfec1aab5421 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3514480 Reviewed-by: Domenic Denicola Commit-Queue: Nate Chapin Cr-Commit-Position: refs/heads/main@{#979984} -- wpt-commits: 65340bb1a3e071839f35b20f9c2146c8d1df2e82 wpt-pr: 33141 --- ...rrentchange-before-popsate-transitionWhile.html | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 testing/web-platform/tests/app-history/ordering-and-transition/currentchange-before-popsate-transitionWhile.html diff --git a/testing/web-platform/tests/app-history/ordering-and-transition/currentchange-before-popsate-transitionWhile.html b/testing/web-platform/tests/app-history/ordering-and-transition/currentchange-before-popsate-transitionWhile.html new file mode 100644 index 000000000000..2a0155a6ed52 --- /dev/null +++ b/testing/web-platform/tests/app-history/ordering-and-transition/currentchange-before-popsate-transitionWhile.html @@ -0,0 +1,48 @@ + + + + -- 2.11.4.GIT