Bug 611089 - The private browsing service can leak windows; r=gavin a=blocking-betaN+

This commit is contained in:
Ehsan Akhgari 2010-11-10 15:22:39 -05:00
Родитель 291032cb14
Коммит b0591e0b6d
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -94,6 +94,9 @@ function PrivateBrowsingService() {
this._obs.addObserver(this, "private-browsing", true);
this._obs.addObserver(this, "command-line-startup", true);
this._obs.addObserver(this, "sessionstore-browser-state-restored", true);
// List of nsIXULWindows we are going to be closing during the transition
this._windowsToClose = [];
}
PrivateBrowsingService.prototype = {
@ -126,9 +129,6 @@ PrivateBrowsingService.prototype = {
// List of view source window URIs for restoring later
_viewSrcURLs: [],
// List of nsIXULWindows we are going to be closing during the transition
_windowsToClose: [],
// Whether private browsing has been turned on from the command line
_lastChangedByCommandLine: false,