Bug 1368370 - remove leftover page action hiding, r=dao
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Mon, 29 May 2017 11:40:41 +0100
changeset 409209 79c629f3a50e5d1bb8022ae08811f6a1988871fc
parent 409208 abd213bb84d414a5a28abbfb327cb333e53bb59c
child 409210 cc274092e3782574f2ca8460ff5b6342813d05ef
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs1368370
milestone55.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 1368370 - remove leftover page action hiding, r=dao MozReview-Commit-ID: KEaOIYhKL6G
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -1705,18 +1705,16 @@ var gBrowserInit = {
     gBrowser.tabContainer.addEventListener("TabSelect", function() {
       for (let panel of document.querySelectorAll("panel[tabspecific='true']")) {
         if (panel.state == "open") {
           panel.hidePopup();
         }
       }
     });
 
-    gPageActionButton.init();
-
     this.delayedStartupFinished = true;
 
     _resolveDelayedStartup();
     Services.obs.notifyObservers(window, "browser-delayed-startup-finished");
     TelemetryTimestamps.add("delayedStartupFinished");
   },
 
   // Returns the URI(s) to load at startup.
@@ -7737,22 +7735,16 @@ var gPageActionButton = {
     return this.panel = document.getElementById("page-action-panel");
   },
 
   get sendToDeviceBody() {
     delete this.sendToDeviceBody;
     return this.sendToDeviceBody = document.getElementById("page-action-sendToDeviceView-body");
   },
 
-  init() {
-    if (getBoolPref("browser.photon.structure.enabled")) {
-      this.button.hidden = false;
-    }
-  },
-
   onEvent(event) {
     event.stopPropagation();
 
     if ((event.type == "click" && event.button != 0) ||
         (event.type == "keypress" && event.charCode != KeyEvent.DOM_VK_SPACE &&
          event.keyCode != KeyEvent.DOM_VK_RETURN)) {
       return; // Left click, space or enter only
     }