mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 02:31:41 +00:00
Bug 828780 - Ensure that closing a window via closing the last tab goes through the code path taken by closing the window directly; r=gavin
As a result, we make sure that the last-pb-context-exiting notification is correctly dispatched no matter how we close the last private window. --HG-- extra : rebase_source : f8bc848b6e86b6f7f5839156613c2e194807c403
This commit is contained in:
parent
c34423960e
commit
9c6ad14ea6
@ -1649,7 +1649,7 @@
|
||||
if (closeWindow &&
|
||||
aCloseWindowFastpath &&
|
||||
this._removingTabs.length == 0 &&
|
||||
(this._windowIsClosing = window.closeWindow(true)))
|
||||
(this._windowIsClosing = window.closeWindow(true, window.warnAboutClosingWindow)))
|
||||
return null;
|
||||
|
||||
newTab = true;
|
||||
@ -1825,7 +1825,7 @@
|
||||
}
|
||||
|
||||
if (aCloseWindow)
|
||||
this._windowIsClosing = closeWindow(true);
|
||||
this._windowIsClosing = closeWindow(true, window.warnAboutClosingWindow);
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
Loading…
x
Reference in New Issue
Block a user