summaryrefslogtreecommitdiffstats
path: root/browser/components/customizableui/CustomizeMode.sys.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'browser/components/customizableui/CustomizeMode.sys.mjs')
-rw-r--r--browser/components/customizableui/CustomizeMode.sys.mjs20
1 files changed, 9 insertions, 11 deletions
diff --git a/browser/components/customizableui/CustomizeMode.sys.mjs b/browser/components/customizableui/CustomizeMode.sys.mjs
index 5f6d01d833..7b4ee373be 100644
--- a/browser/components/customizableui/CustomizeMode.sys.mjs
+++ b/browser/components/customizableui/CustomizeMode.sys.mjs
@@ -28,7 +28,6 @@ ChromeUtils.defineESModuleGetters(lazy, {
AddonManager: "resource://gre/modules/AddonManager.sys.mjs",
BrowserUsageTelemetry: "resource:///modules/BrowserUsageTelemetry.sys.mjs",
DragPositionManager: "resource:///modules/DragPositionManager.sys.mjs",
- SessionStore: "resource:///modules/sessionstore/SessionStore.sys.mjs",
URILoadingHelper: "resource:///modules/URILoadingHelper.sys.mjs",
});
ChromeUtils.defineLazyGetter(lazy, "gWidgetsBundle", function () {
@@ -63,14 +62,14 @@ var gTab;
function closeGlobalTab() {
let win = gTab.ownerGlobal;
if (win.gBrowser.browsers.length == 1) {
- win.BrowserOpenTab();
+ win.BrowserCommands.openTab();
}
win.gBrowser.removeTab(gTab, { animate: true });
gTab = null;
}
var gTabsProgressListener = {
- onLocationChange(aBrowser, aWebProgress, aRequest, aLocation, aFlags) {
+ onLocationChange(aBrowser, aWebProgress, aRequest, aLocation) {
// Tear down customize mode when the customize mode tab loads some other page.
// Customize mode will be re-entered if "about:blank" is loaded again, so
// don't tear down in this case.
@@ -221,7 +220,6 @@ CustomizeMode.prototype = {
gTab = aTab;
gTab.setAttribute("customizemode", "true");
- lazy.SessionStore.persistTabAttribute("customizemode");
if (gTab.linkedPanel) {
gTab.linkedBrowser.stop();
@@ -663,7 +661,7 @@ CustomizeMode.prototype = {
});
},
- async addToToolbar(aNode, aReason) {
+ async addToToolbar(aNode) {
aNode = this._getCustomizableChildForNode(aNode);
if (aNode.localName == "toolbarpaletteitem" && aNode.firstElementChild) {
aNode = aNode.firstElementChild;
@@ -1282,15 +1280,15 @@ CustomizeMode.prototype = {
this._onUIChange();
},
- onWidgetMoved(aWidgetId, aArea, aOldPosition, aNewPosition) {
+ onWidgetMoved() {
this._onUIChange();
},
- onWidgetAdded(aWidgetId, aArea, aPosition) {
+ onWidgetAdded() {
this._onUIChange();
},
- onWidgetRemoved(aWidgetId, aArea) {
+ onWidgetRemoved() {
this._onUIChange();
},
@@ -1649,7 +1647,7 @@ CustomizeMode.prototype = {
delete this.paletteDragHandler;
},
- observe(aSubject, aTopic, aData) {
+ observe(aSubject, aTopic) {
switch (aTopic) {
case "nsPref:changed":
this._updateResetButton();
@@ -2329,7 +2327,7 @@ CustomizeMode.prototype = {
}
},
- _setGridDragActive(aDragOverNode, aDraggedItem, aValue) {
+ _setGridDragActive(aDragOverNode, aDraggedItem) {
let targetArea = this._getCustomizableParent(aDragOverNode);
let draggedWrapper = this.$("wrapper-" + aDraggedItem.id);
let originArea = this._getCustomizableParent(draggedWrapper);
@@ -2428,7 +2426,7 @@ CustomizeMode.prototype = {
return aElement.closest(areas.map(a => "#" + CSS.escape(a)).join(","));
},
- _getDragOverNode(aEvent, aAreaElement, aAreaType, aDraggedItemId) {
+ _getDragOverNode(aEvent, aAreaElement, aAreaType) {
let expectedParent =
CustomizableUI.getCustomizationTarget(aAreaElement) || aAreaElement;
if (!expectedParent.contains(aEvent.target)) {