Bug 1534351 - HTMLInputElement should always allow popups for system principal, r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D26671
This commit is contained in:
Andrea Marchesini
2019-04-09 19:27:15 +00:00
parent 1061fbe125
commit f6465d5679
8 changed files with 19 additions and 9 deletions

View File

@@ -654,7 +654,7 @@ bool HTMLInputElement::IsPopupBlocked() const {
// Check if page can open a popup without abuse regardless of allowed events
if (PopupBlocker::GetPopupControlState() <= PopupBlocker::openBlocked) {
return !PopupBlocker::TryUsePopupOpeningToken();
return !PopupBlocker::TryUsePopupOpeningToken(OwnerDoc()->NodePrincipal());
}
return !PopupBlocker::CanShowPopupByPermission(OwnerDoc()->NodePrincipal());