Bug 1062256 - Followup to disable »What is this« bubble for 33-specific code paths [r=ttaubert a=sylvestre]
authorEd Lee <edilee@mozilla.com>
Sun, 28 Sep 2014 09:06:33 -0700
changeset 218012 041c9b3d66b173f9623e54e77d530c098a3995c3
parent 218011 b4d40427d6e8169e28b5acadfa52288f347da550
child 218013 8dfb2430db1c9af971eaf1958023dba55e8d966a
push id515
push userraliiev@mozilla.com
push dateMon, 06 Oct 2014 12:51:51 +0000
treeherdermozilla-release@267c7a481bef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersttaubert, sylvestre
bugs1062256
milestone33.0
Bug 1062256 - Followup to disable »What is this« bubble for 33-specific code paths [r=ttaubert a=sylvestre] Short circuit intro initialization so no text is shown.
browser/base/content/newtab/intro.js
--- a/browser/base/content/newtab/intro.js
+++ b/browser/base/content/newtab/intro.js
@@ -12,16 +12,20 @@ let gIntro = {
   _nodeIDSuffixes: [
     "panel",
     "what",
   ],
 
   _nodes: {},
 
   init: function() {
+    if (!DirectoryLinksProvider.enabled) {
+      return;
+    }
+
     for (let idSuffix of this._nodeIDSuffixes) {
       this._nodes[idSuffix] = document.getElementById("newtab-intro-" + idSuffix);
     }
 
     this._nodes.what.textContent = newTabString("customize.what");
 
     this._nodes.panel.addEventListener("popupshowing", e => this._setUpPanel());
     this._nodes.what.addEventListener("click", e => this.showPanel());