Bug 463582 - Private browsing menu item does not work with no browser windows open; r=gavin
authorEhsan Akhgari <ehsan.akhgari@gmail.com>
Fri, 09 Jan 2009 14:54:17 +0330
changeset 23506 a32d4db772d26535edb17645971c5ec957caf7cc
parent 23505 37699a458f2849049757da006911fcc8c65813f9
child 23507 02f596a6b80cd503c54c186caa7c00e03769fe5c
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs463582
milestone1.9.2a1pre
Bug 463582 - Private browsing menu item does not work with no browser windows open; r=gavin
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -1473,21 +1473,26 @@ function nonBrowserWindowStartup()
 
 function nonBrowserWindowDelayedStartup()
 {
   // initialise the offline listener
   BrowserOffline.init();
   
   // Set up Sanitize Item
   initializeSanitizer();
+
+  // initialize the private browsing UI
+  gPrivateBrowsingUI.init();
 }
 
 function nonBrowserWindowShutdown()
 {
   BrowserOffline.uninit();
+
+  gPrivateBrowsingUI.uninit();
 }
 #endif
 
 function AutoHideTabbarPrefListener()
 {
   this.toggleAutoHideTabbar();
 }