From fffedee9efa35423fa021db1c3a6c3d0e9ef58d2 Mon Sep 17 00:00:00 2001 From: ganna Date: Wed, 30 Aug 2023 17:35:38 +0000 Subject: [PATCH] Bug 1832348 - Part 1: Replace .panel-footer with moz-button-group in editBookmarkPanel r=hjones,dao Differential Revision: https://phabricator.services.mozilla.com/D181285 --- browser/base/content/browser-places.js | 1 + browser/base/content/main-popupset.inc.xhtml | 19 +++--------- .../shared/places/editBookmarkPanel.css | 4 --- toolkit/themes/shared/global-shared.css | 29 +++++++++++++------ 4 files changed, 25 insertions(+), 28 deletions(-) diff --git a/browser/base/content/browser-places.js b/browser/base/content/browser-places.js index 689021661e8b..bcaf755f5c6d 100644 --- a/browser/base/content/browser-places.js +++ b/browser/base/content/browser-places.js @@ -55,6 +55,7 @@ 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; diff --git a/browser/base/content/main-popupset.inc.xhtml b/browser/base/content/main-popupset.inc.xhtml index 1ec4091376bd..2633ccd0f9fa 100644 --- a/browser/base/content/main-popupset.inc.xhtml +++ b/browser/base/content/main-popupset.inc.xhtml @@ -187,30 +187,19 @@ data-l10n-id="bookmark-panel-show-editor-checkbox" oncommand="StarUI.onShowForNewBookmarksCheckboxCommand();"/> - -#ifndef XP_UNIX