Bug 1959061 - Remove overflow/underflow event prefs r=extension-reviewers,emilio,robwu

And use counters

Differential Revision: https://phabricator.services.mozilla.com/D244718
This commit is contained in:
Gregory Pappas
2025-04-08 23:48:03 +00:00
parent 2b1691e0c7
commit 2c1c232662
10 changed files with 1 additions and 215 deletions

View File

@@ -5923,18 +5923,7 @@ void ScrollContainerFrame::PostOverflowEvent() {
return;
}
auto overflowEventEnabled = [&]() -> bool {
Document* doc = PresContext()->Document();
if (nsContentUtils::IsChromeDoc(doc)) {
return true;
}
if (nsContentUtils::IsAddonDoc(doc)) {
return StaticPrefs::layout_overflow_underflow_content_enabled_in_addons();
}
return StaticPrefs::layout_overflow_underflow_content_enabled();
}();
if (!overflowEventEnabled) {
if (!nsContentUtils::IsChromeDoc(PresContext()->Document())) {
return;
}