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 216890 041c9b3d66b1
parent 216889 b4d40427d6e8
child 216891 8dfb2430db1c
push id3957
push useredilee@gmail.com
push date2014-10-01 15:55 +0000
treeherdermozilla-beta@8dfb2430db1c [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());