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;
|
||||
}
|
||||
|
||||
if (!isPBWindow && nonPopupPresent)
|
||||
return gBrowser.warnAboutClosingTabs(true);
|
||||
if (nonPopupPresent) {
|
||||
return isPBWindow || gBrowser.warnAboutClosingTabs(true);
|
||||
}
|
||||
|
||||
let os = Services.obs;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user