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:31:46 +0800
changeset 26240 b66fc99534fbb512c989cb34d79edf5dd3f0de1a
parent 26239 c8208d887a84e7f31fd0368a6ea0ff029eee78c0
child 26241 96d368e1c89d0c8b035ad757c2f674dbb2125f2e
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [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,