Bug 1933321 - Get rid of dom.block_multiple_popups; r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D230232
This commit is contained in:
Edgar Chen
2024-11-26 20:43:00 +00:00
parent 79f1ffdd8d
commit 44d3acf16f
5 changed files with 57 additions and 191 deletions

View File

@@ -2297,7 +2297,7 @@ PopupBlocker::PopupControlState BrowsingContext::RevisePopupAbuseLevel(
// PopupBlocker::openBlocked state.
if ((abuse == PopupBlocker::openAllowed ||
abuse == PopupBlocker::openControlled) &&
StaticPrefs::dom_block_multiple_popups() && !IsPopupAllowed() &&
!IsPopupAllowed() &&
!ConsumeTransientUserActivationForMultiplePopupBlocking()) {
nsContentUtils::ReportToConsole(nsIScriptError::warningFlag, "DOM"_ns,
doc, nsContentUtils::eDOM_PROPERTIES,