Bug 980433 - [Australis] Hide the tip panel by default to prevent Talso regressions. r=mconley
authorMike de Boer <mdeboer@mozilla.com>
Thu, 06 Mar 2014 17:06:30 -0500
changeset 189651 1466debaadb4cc3afd7c37cc5daa6e788fe8ab3f
parent 189650 961468ea1421d60bc639a10aa788bab2f8b83726
child 189652 8187e4139690329e3ebad0ee325cb429982b81bd
push id3503
push userraliiev@mozilla.com
push dateMon, 28 Apr 2014 18:51:11 +0000
treeherdermozilla-beta@c95ac01e332e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs980433
milestone30.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 980433 - [Australis] Hide the tip panel by default to prevent Talso regressions. r=mconley
browser/components/customizableui/content/panelUI.inc.xul
browser/components/customizableui/src/CustomizeMode.jsm
--- a/browser/components/customizableui/content/panelUI.inc.xul
+++ b/browser/components/customizableui/content/panelUI.inc.xul
@@ -232,17 +232,18 @@
   </vbox>
 </panel>
 
 <panel id="customization-tipPanel"
        type="arrow"
        flip="none"
        side="left"
        position="leftcenter topright"
-       noautohide="true">
+       noautohide="true"
+       hidden="true">
   <hbox class="customization-tipPanel-wrapper">
     <vbox class="customization-tipPanel-infoBox"/>
     <vbox class="customization-tipPanel-content" flex="1">
       <description class="customization-tipPanel-contentMessage"/>
       <image class="customization-tipPanel-contentImage"/>
     </vbox>
     <vbox pack="start" align="end" class="customization-tipPanel-closeBox">
       <toolbarbutton oncommand="gCustomizeMode.hideTip()" class="close-icon"/>
--- a/browser/components/customizableui/src/CustomizeMode.jsm
+++ b/browser/components/customizableui/src/CustomizeMode.jsm
@@ -564,16 +564,17 @@ CustomizeMode.prototype = {
       messageNode.querySelector("." + kLabelClass).addEventListener("click", () => {
         let url = Services.urlFormatter.formatURLPref("browser.customizemode.tip0.learnMoreUrl");
         let browser = this.browser;
         browser.selectedTab = browser.addTab(url);
         this.hideTip();
       });
     }
 
+    this.tipPanel.hidden = false;
     this.tipPanel.openPopup(anchorNode);
     Services.prefs.setBoolPref(kShownPref, true);
   },
 
   hideTip: function() {
     this.tipPanel.hidePopup();
   },