mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
Bug 854926 - Never request confirmation to close the last private browsing window. r=gavin
This commit is contained in:
parent
502238ef9b
commit
c66ca5e022
@ -6344,8 +6344,9 @@ function warnAboutClosingWindow() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isPBWindow && nonPopupPresent)
|
if (nonPopupPresent) {
|
||||||
return gBrowser.warnAboutClosingTabs(true);
|
return isPBWindow || gBrowser.warnAboutClosingTabs(true);
|
||||||
|
}
|
||||||
|
|
||||||
let os = Services.obs;
|
let os = Services.obs;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user