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:
Ehsan Akhgari 2013-01-15 01:06:55 -05:00
parent c34423960e
commit 9c6ad14ea6

View File

@ -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>