summaryrefslogtreecommitdiffstats
path: root/browser/components/customizableui/content
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:50 +0000
commitdef92d1b8e9d373e2f6f27c366d578d97d8960c6 (patch)
tree2ef34b9ad8bb9a9220e05d60352558b15f513894 /browser/components/customizableui/content
parentAdding debian version 125.0.3-1. (diff)
downloadfirefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.tar.xz
firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/customizableui/content')
-rw-r--r--browser/components/customizableui/content/panelUI.js43
1 files changed, 2 insertions, 41 deletions
diff --git a/browser/components/customizableui/content/panelUI.js b/browser/components/customizableui/content/panelUI.js
index f99560bd42..cb32085fd7 100644
--- a/browser/components/customizableui/content/panelUI.js
+++ b/browser/components/customizableui/content/panelUI.js
@@ -6,7 +6,6 @@ ChromeUtils.defineESModuleGetters(this, {
AppMenuNotifications: "resource://gre/modules/AppMenuNotifications.sys.mjs",
NewTabUtils: "resource://gre/modules/NewTabUtils.sys.mjs",
PanelMultiView: "resource:///modules/PanelMultiView.sys.mjs",
- ToolbarPanelHub: "resource:///modules/asrouter/ToolbarPanelHub.jsm",
});
/**
@@ -167,9 +166,6 @@ const PanelUI = {
this.menuButton.removeEventListener("mousedown", this);
this.menuButton.removeEventListener("keypress", this);
CustomizableUI.removeListener(this);
- if (this.whatsNewPanel) {
- this.whatsNewPanel.removeEventListener("ViewShowing", this);
- }
},
/**
@@ -303,11 +299,6 @@ const PanelUI = {
case "activate":
this.updateNotifications();
break;
- case "ViewShowing":
- if (aEvent.target == this.whatsNewPanel) {
- this.onWhatsNewPanelShowing();
- }
- break;
}
},
@@ -412,7 +403,6 @@ const PanelUI = {
return;
}
- this.ensureWhatsNewInitialized(viewNode);
this.ensurePanicViewInitialized(viewNode);
let container = aAnchor.closest("panelmultiview");
@@ -497,24 +487,6 @@ const PanelUI = {
},
/**
- * Sets up the event listener for when the What's New panel is shown.
- *
- * @param {panelview} panelView The What's New panelview.
- */
- ensureWhatsNewInitialized(panelView) {
- if (panelView.id != "PanelUI-whatsNew" || panelView._initialized) {
- return;
- }
-
- if (!this.whatsNewPanel) {
- this.whatsNewPanel = panelView;
- }
-
- panelView._initialized = true;
- panelView.addEventListener("ViewShowing", this);
- },
-
- /**
* Adds FTL before appending the panic view markup to the main DOM.
*
* @param {panelview} panelView The Panic View panelview.
@@ -533,17 +505,6 @@ const PanelUI = {
},
/**
- * When the What's New panel is showing, we fetch the messages to show.
- */
- onWhatsNewPanelShowing() {
- ToolbarPanelHub.renderMessages(
- window,
- document,
- "PanelUI-whatsNew-message-container"
- );
- },
-
- /**
* NB: The enable- and disableSingleSubviewPanelAnimations methods only
* affect the hiding/showing animations of single-subview panels (tempPanel
* in the showSubView method).
@@ -568,7 +529,7 @@ const PanelUI = {
}
},
- onWidgetAfterDOMChange(aNode, aNextNode, aContainer, aWasRemoval) {
+ onWidgetAfterDOMChange(aNode, aNextNode, aContainer) {
if (aContainer == this.overflowFixedList) {
this.updateOverflowStatus();
}
@@ -601,7 +562,7 @@ const PanelUI = {
}
},
- _onHelpViewShow(aEvent) {
+ _onHelpViewShow() {
// Call global menu setup function
buildHelpMenu();