Bug 850398 - Buttons on Metro pop-up blocker notification are broken [r=rsilveira]

--HG--
extra : rebase_source : f38b06d4bfc4251596bc2da918d33453f965863c
This commit is contained in:
Matt Brubeck 2013-03-12 16:32:11 -07:00
parent 9e9b087e6f
commit fa8a4d6dc7

View File

@ -1233,7 +1233,7 @@ var PopupBlockerObserver = {
case "mousedown":
let box = Browser.getNotificationBox();
let notification = box.getNotificationWithValue("popup-blocked");
if (notification)
if (notification && !notification.contains(aEvent.target))
box.removeNotification(notification);
break;
}
@ -1276,17 +1276,17 @@ var PopupBlockerObserver = {
{
isDefault: false,
label: strings.GetStringFromName("popupButtonAllowOnce2"),
accessKey: null,
accessKey: "",
callback: function() { PopupBlockerObserver.showPopupsForSite(); }
},
{
label: strings.GetStringFromName("popupButtonAlwaysAllow3"),
accessKey: null,
accessKey: "",
callback: function() { PopupBlockerObserver.allowPopupsForSite(true); }
},
{
label: strings.GetStringFromName("popupButtonNeverWarn3"),
accessKey: null,
accessKey: "",
callback: function() { PopupBlockerObserver.allowPopupsForSite(false); }
}
];