tor-browser

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

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

Bug 1998812. OneStepInAsyncScrollableAncestorChain should stop at menu popups like GetAsyncScrollableAncestorFrame. r=hiro

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

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

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