From b0591e0b6d6f02f3d70fa5bb9a98d97955d93132 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Wed, 10 Nov 2010 15:22:39 -0500 Subject: [PATCH] Bug 611089 - The private browsing service can leak windows; r=gavin a=blocking-betaN+ --- .../privatebrowsing/src/nsPrivateBrowsingService.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/browser/components/privatebrowsing/src/nsPrivateBrowsingService.js b/browser/components/privatebrowsing/src/nsPrivateBrowsingService.js index a8a3480d2509..cc53ec80804f 100644 --- a/browser/components/privatebrowsing/src/nsPrivateBrowsingService.js +++ b/browser/components/privatebrowsing/src/nsPrivateBrowsingService.js @@ -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,