diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:37 +0000 |
commit | a90a5cba08fdf6c0ceb95101c275108a152a3aed (patch) | |
tree | 532507288f3defd7f4dcf1af49698bcb76034855 /browser/base/content/browser-places.js | |
parent | Adding debian version 126.0.1-1. (diff) | |
download | firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.tar.xz firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/base/content/browser-places.js')
-rw-r--r-- | browser/base/content/browser-places.js | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/browser/base/content/browser-places.js b/browser/base/content/browser-places.js index c940fade5f..404a080983 100644 --- a/browser/base/content/browser-places.js +++ b/browser/base/content/browser-places.js @@ -55,7 +55,6 @@ var StarUI = { delete this.panel; this._createPanelIfNeeded(); var element = this._element("editBookmarkPanel"); - window.ensureCustomElements("moz-button-group"); // initially the panel is hidden // to avoid impacting startup / new window performance element.hidden = false; @@ -1378,7 +1377,7 @@ var BookmarkingUI = { this.updateLabel( "BMB_viewBookmarksSidebar", - SidebarUI.currentID == "viewBookmarksSidebar" + SidebarController.currentID == "viewBookmarksSidebar" ); this.updateLabel("BMB_viewBookmarksToolbar", !this.toolbar.collapsed); }, @@ -1999,6 +1998,13 @@ var BookmarkingUI = { case "ViewHiding": this.onPanelMenuViewHiding(aEvent); break; + case "command": + if (aEvent.target.id == "panelMenu_searchBookmarks") { + PlacesCommandHook.searchBookmarks(); + } else if (aEvent.target.id == "panelMenu_viewBookmarksToolbar") { + this.toggleBookmarksToolbar("bookmark-tools"); + } + break; } }, @@ -2026,12 +2032,15 @@ var BookmarkingUI = { panelview ); panelview.removeEventListener("ViewShowing", this); + panelview.addEventListener("command", this); }, onPanelMenuViewHiding: function BUI_onViewHiding(aEvent) { this._panelMenuView.uninit(); delete this._panelMenuView; - aEvent.target.removeEventListener("ViewHiding", this); + let panelview = aEvent.target; + panelview.removeEventListener("ViewHiding", this); + panelview.removeEventListener("command", this); }, handlePlacesEvents(aEvents) { |