tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit ec13ac623904dbf5da4006a3b1e827e07f9c3cb4
parent 99f1583c52aa8b8001b837d8c34cab1b5c8473cd
Author: Timothy Nikkel <tnikkel@gmail.com>
Date:   Tue, 11 Nov 2025 04:29:42 +0000

Bug 1998812. Make the same fix to OneStepInAsyncScrollableAncestorChain that bug 1995752 did for GetAsyncScrollableAncestorFrame. r=hiro

Differential Revision: https://phabricator.services.mozilla.com/D271695

Diffstat:
Mlayout/base/DisplayPortUtils.cpp | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/layout/base/DisplayPortUtils.cpp b/layout/base/DisplayPortUtils.cpp @@ -836,7 +836,9 @@ nsIFrame* DisplayPortUtils::OneStepInAsyncScrollableAncestorChain( nsIFrame* aFrame) { if (aFrame->StyleDisplay()->mPosition == StylePositionProperty::Fixed && nsLayoutUtils::IsReallyFixedPos(aFrame)) { - return aFrame->PresShell()->GetRootScrollContainerFrame(); + if (nsIFrame* root = aFrame->PresShell()->GetRootScrollContainerFrame()) { + return root; + } } return nsLayoutUtils::GetCrossDocParentFrameInProcess(aFrame); }