Bug 918780 - Add new PopupControlState for permitting file/color picker popup regardless of dom_allowed_events. r=smaug

MozReview-Commit-ID: 1GbjQ6IkMsv
This commit is contained in:
Kestrel
2016-04-24 04:49:00 +01:00
parent 3e305358d5
commit cb30f12dc8
7 changed files with 37 additions and 15 deletions

View File

@@ -818,8 +818,8 @@ HTMLInputElement::IsPopupBlocked() const
return true;
}
// Check if page is allowed to open the popup
if (win->GetPopupControlState() <= openControlled) {
// Check if page can open a popup without abuse regardless of allowed events
if (win->GetPopupControlState() <= openBlocked) {
return false;
}