Bug 743227 - "Always show" does not display the popoups until a page reload. r=mbrubeck

This commit is contained in:
Margaret Leibovic 2012-04-06 09:58:03 -07:00
parent 3cd4cdb51d
commit b16dc90dad

View File

@ -3518,7 +3518,11 @@ var PopupBlockerObserver = {
}, },
{ {
label: strings.GetStringFromName("popupButtonAlwaysAllow2"), label: strings.GetStringFromName("popupButtonAlwaysAllow2"),
callback: function() { PopupBlockerObserver.allowPopupsForSite(true); } callback: function() {
// Set permission before opening popup windows
PopupBlockerObserver.allowPopupsForSite(true);
PopupBlockerObserver.showPopupsForSite();
}
}, },
{ {
label: strings.GetStringFromName("popupButtonNeverWarn2"), label: strings.GetStringFromName("popupButtonNeverWarn2"),