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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user