mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 518327 - "Allow Pop-ups for ..." menu item not enabled again when leaving Private Browsing mode; r=mconnor
This commit is contained in:
parent
08ec536d23
commit
5c7ba61cf3
@ -440,6 +440,8 @@ const gPopupBlockerObserver = {
|
||||
|
||||
if (gPrivateBrowsingUI.privateBrowsingEnabled)
|
||||
blockedPopupAllowSite.setAttribute("disabled", "true");
|
||||
else
|
||||
blockedPopupAllowSite.removeAttribute("disabled", "true");
|
||||
|
||||
var item = aEvent.target.lastChild;
|
||||
while (item && item.getAttribute("observes") != "blockedPopupsSeparator") {
|
||||
|
@ -88,10 +88,14 @@ function test() {
|
||||
gBrowser.selectedTab = tab;
|
||||
}
|
||||
|
||||
testPopupBlockerMenuItem(false, function() {
|
||||
pb.privateBrowsingEnabled = true;
|
||||
testPopupBlockerMenuItem(true, function() {
|
||||
pb.privateBrowsingEnabled = false;
|
||||
testPopupBlockerMenuItem(false, function() {
|
||||
gPrefService.setBoolPref("dom.disable_open_during_load", oldPopupPolicy);
|
||||
finish();
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user