Bug 1888737 - Disable overflow/underflow events in early beta r=smaug,emilio

Differential Revision: https://phabricator.services.mozilla.com/D206175
This commit is contained in:
Gregory Pappas
2024-05-16 09:06:12 +00:00
parent e48ed7c741
commit 16e75323f7
4 changed files with 20 additions and 3 deletions

View File

@@ -5982,6 +5982,11 @@ void ScrollContainerFrame::PostOverflowEvent() {
return;
}
if (!nsContentUtils::IsChromeDoc(PresContext()->Document()) &&
!StaticPrefs::layout_overflow_underflow_content_enabled()) {
return;
}
OverflowState overflowState = GetOverflowState();
bool newVerticalOverflow = !!(overflowState & OverflowState::Vertical);