commit 0287eb9eabe55748dd12a8c33d6b3f50d8020276 parent 6a0e69a1962375cdf7590c4c18359a77c67b32bd Author: Andreas Farre <farre@mozilla.com> Date: Thu, 20 Nov 2025 14:18:12 +0000 Bug 2001338 - Update Document::mScrollToRef before calling Document::ScrollToRef. r=dom-core,smaug Differential Revision: https://phabricator.services.mozilla.com/D273415 Diffstat:
5 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/dom/events/NavigateEvent.cpp b/dom/events/NavigateEvent.cpp @@ -533,6 +533,9 @@ void NavigateEvent::ProcessScrollBehavior() { } // Step 4.3 + // Here we need to update Document::mScrollToRef, since that is what + // Document::ScrollToRef will be scrolling to. + document->SetScrollToRef(document->GetDocumentURI()); document->ScrollToRef(); } diff --git a/testing/web-platform/meta/navigation-api/scroll-behavior/after-transition-push.html.ini b/testing/web-platform/meta/navigation-api/scroll-behavior/after-transition-push.html.ini @@ -1,3 +0,0 @@ -[after-transition-push.html] - [scroll: after-transition should work on a push navigation] - expected: FAIL diff --git a/testing/web-platform/meta/navigation-api/scroll-behavior/after-transition-replace.html.ini b/testing/web-platform/meta/navigation-api/scroll-behavior/after-transition-replace.html.ini @@ -1,3 +0,0 @@ -[after-transition-replace.html] - [scroll: after-transition should work on a replace navigation] - expected: FAIL diff --git a/testing/web-platform/meta/navigation-api/scroll-behavior/manual-scroll-push.html.ini b/testing/web-platform/meta/navigation-api/scroll-behavior/manual-scroll-push.html.ini @@ -1,3 +0,0 @@ -[manual-scroll-push.html] - [scroll: scroll() should work on a push navigation] - expected: FAIL diff --git a/testing/web-platform/meta/navigation-api/scroll-behavior/manual-scroll-replace.html.ini b/testing/web-platform/meta/navigation-api/scroll-behavior/manual-scroll-replace.html.ini @@ -1,3 +0,0 @@ -[manual-scroll-replace.html] - [scroll: scroll() should work on a replace navigation] - expected: FAIL