Fix bookmarks sidebar panel in non-browser windows r=Ratty a=Neil for comm-aurora and comm-beta CLOSED TREE
authorExalm <exalm7659@gmail.com>
Tue, 07 Jul 2015 02:38:46 +0800
changeset 31155 c472943047329938a41889e48d0153687fddf576
parent 31154 e093ed6c6f22c5f7964d1b15cc9f231f626dc6b8
child 31159 fcd6e2b92e3d0d434ff990c7d6f713c9fb62e93b
push id1
push userclokep@gmail.com
push dateMon, 07 May 2018 22:45:56 +0000
treeherdercomm-esr60@57eacde5ef40 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersRatty, Neil
Fix bookmarks sidebar panel in non-browser windows r=Ratty a=Neil for comm-aurora and comm-beta CLOSED TREE
suite/common/bookmarks/bm-panel.js
--- a/suite/common/bookmarks/bm-panel.js
+++ b/suite/common/bookmarks/bm-panel.js
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 function init() {
   document.getElementById("bookmarks-view").place =
-    "place:queryType=1&folder=" + window.top.PlacesUIUtils.allBookmarksFolderId;
+    "place:queryType=1&folder=" + PlacesUIUtils.allBookmarksFolderId;
 }
 
 function searchBookmarks(aSearchString) {
   var tree = document.getElementById('bookmarks-view');
   if (!aSearchString)
     tree.place = tree.place;
   else
     tree.applyFilter(aSearchString,