Bug 1117005 Can't hide sidebar tabs in private windows r=Ratty
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Wed, 07 Jan 2015 21:51:46 +0000
changeset 21594 3720643fdd4fc77c41c9fbcdec3967448ff9596f
parent 21593 d98f854e12666aba91f48e328737c8375b96111f
child 21595 34becc11470eb00bccd7d41aedb1c62dd8d1558d
push id1305
push usermbanner@mozilla.com
push dateMon, 23 Feb 2015 19:48:12 +0000
treeherdercomm-beta@3ae4f13858fd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersRatty
bugs1117005
Bug 1117005 Can't hide sidebar tabs in private windows r=Ratty
suite/common/sidebar/sidebarOverlay.js
--- a/suite/common/sidebar/sidebarOverlay.js
+++ b/suite/common/sidebar/sidebarOverlay.js
@@ -707,17 +707,18 @@ function sidebar_overlay_init() {
   sidebarObj.datasource_uri = get_sidebar_datasource_uri();
   sidebarObj.datasource = RDF.GetDataSourceBlocking(sidebarObj.datasource_uri);
   sidebarObj.resource = 'urn:sidebar:current-panel-list';
 
   sidebarObj.master_datasources = "";
   sidebarObj.master_datasources = get_remote_datasource_url();
   sidebarObj.master_datasources += " " + sidebarObj.datasource_uri;
   sidebarObj.master_resource = 'urn:sidebar:master-panel-list';
-  sidebarObj.component = document.documentElement.getAttribute('windowtype');
+  sidebarObj.component = gPrivate ? "navigator:browser" :
+                         document.documentElement.getAttribute('windowtype');
   debug("sidebarObj.component is " + sidebarObj.component);
 
   // Sync RDF with broadcasters.
   SidebarBroadcastersToRDF();
 
   // Initialize the display
   var sidebar_element = document.getElementById('sidebar-box');
   var sidebar_menuitem = document.getElementById('sidebar-menu');