Bug 1354155 - fix pocket button's checks for whether it is the mainview in a panelmultiview, r=mikedeboer
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Tue, 30 May 2017 16:29:45 +0100
changeset 361683 d8118603a0bd2e2b41bcbfd97e763e04ba4d2efe
parent 361682 718fc2e88bb1daff46725c30c73dec2366d7bc33
child 361684 39941ecd60960ab28f5839eb0dabae669c1ab391
push id31939
push usercbook@mozilla.com
push dateThu, 01 Jun 2017 11:49:28 +0000
treeherdermozilla-central@d96110d76619 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmikedeboer
bugs1354155
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 1354155 - fix pocket button's checks for whether it is the mainview in a panelmultiview, r=mikedeboer MozReview-Commit-ID: 6kLNAtOmCjn
browser/extensions/pocket/content/main.js
--- a/browser/extensions/pocket/content/main.js
+++ b/browser/extensions/pocket/content/main.js
@@ -546,17 +546,17 @@ var pktUI = (function() {
             frame.setAttribute("type", "content");
             frameParent.appendChild(frame);
         }
         return frame;
     }
 
     function getSubview() {
         var view = document.getElementById("PanelUI-pocketView");
-        if (view && view.getAttribute("current") == "true")
+        if (view && view.getAttribute("current") == "true" && !view.getAttribute("mainview"))
             return view;
         return null;
     }
 
     function isInOverflowMenu() {
         var subview = getSubview();
         return !!subview;
     }