Bug 1021615 Customise dialog doesn't always display toolbar style r=Ratty
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Tue, 01 Jul 2014 22:26:58 +0100
changeset 20420 b925b4ff54bd2d6e1d166fab15975cf5578142dd
parent 20419 5dc9edfc4261b78d5c6759a301231408cec8e4c7
child 20421 73d22071d91f084b89b5482f786a377619ef4a3a
push id1209
push usermbanner@mozilla.com
push dateTue, 02 Sep 2014 16:59:36 +0000
treeherdercomm-beta@842e0fd167ee [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersRatty
bugs1021615
Bug 1021615 Customise dialog doesn't always display toolbar style r=Ratty
suite/common/bindings/toolbar.xml
--- a/suite/common/bindings/toolbar.xml
+++ b/suite/common/bindings/toolbar.xml
@@ -192,17 +192,17 @@
 
       <method name="observe">
         <parameter name="subject"/>
         <parameter name="topic"/>
         <parameter name="name"/>
         <body>
           <![CDATA[
             if (topic == "nsPref:changed" && name == this.domain) {
-              const styles = ["icons", "text", null];
+              const styles = ["icons", "text", "full"];
               const style = styles[this.prefs.getIntPref(name)];
               this.parentNode.setAttribute("mode", style); // toolbox
               if (!this.hasAttribute("customizable") ||
                   !this.hasAttribute("ignoremodepref"))
                 this.setAttribute("mode", style);
             }
           ]]>
         </body>