Bug 1368370 - remove leftover page action hiding, r=dao
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Mon, 29 May 2017 11:40:41 +0100
changeset 361092 79c629f3a50e5d1bb8022ae08811f6a1988871fc
parent 361091 abd213bb84d414a5a28abbfb327cb333e53bb59c
child 361093 cc274092e3782574f2ca8460ff5b6342813d05ef
push id31917
push usercbook@mozilla.com
push dateTue, 30 May 2017 09:14:52 +0000
treeherdermozilla-central@0c712d76d598 [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
     }