Skip to content

Commit

Permalink
🔥 Remove old panels API in preparation for customizable-based API
Browse files Browse the repository at this point in the history
  • Loading branch information
kierandrewett committed Feb 15, 2024
1 parent 75fef1c commit 5bc9c8f
Show file tree
Hide file tree
Showing 26 changed files with 1 addition and 1,379 deletions.
11 changes: 0 additions & 11 deletions base/content/browser-elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ let noCallbackElements = [

"chrome://dot/content/widgets/browser-command-element.js",

"chrome://dot/content/widgets/browser-panel.js",
"chrome://dot/content/widgets/browser-panel-area.js",
"chrome://dot/content/widgets/browser-multipanel-area.js",
"chrome://dot/content/widgets/browser-panel-menu.js",
"chrome://dot/content/widgets/browser-panel-menuitem.js",

"chrome://dot/content/widgets/browser-customizable-area-overflow-menu.js",

"chrome://dot/content/widgets/browser-group.js",
"chrome://dot/content/widgets/browser-separator.js",

Expand All @@ -58,7 +50,6 @@ let noCallbackElements = [
"chrome://dot/content/widgets/browser-toolbar-button.js",
"chrome://dot/content/widgets/browser-tab-button.js",
"chrome://dot/content/widgets/browser-urlbar-button.js",
"chrome://dot/content/widgets/browser-panel-button.js",

"chrome://dot/content/widgets/browser-urlbar-input.js",

Expand All @@ -73,8 +64,6 @@ let noCallbackElements = [
"chrome://dot/content/widgets/browser-customizable-area-empty.js",
"chrome://dot/content/widgets/browser-customizable-template.js",

"chrome://dot/content/widgets/browser-identity-panel.js",

"chrome://dot/content/widgets/browser-tab.js",
"chrome://dot/content/widgets/browser-tab-icon.js",
"chrome://dot/content/widgets/browser-tab-label.js",
Expand Down
8 changes: 0 additions & 8 deletions base/content/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ var { BrowserActions } = ChromeUtils.importESModule(
"resource:///modules/BrowserActions.sys.mjs"
);

var { BrowserPanels } = ChromeUtils.importESModule(
"resource:///modules/BrowserPanels.sys.mjs"
);

var { BrowserStorage } = ChromeUtils.importESModule(
"resource:///modules/BrowserStorage.sys.mjs"
);
Expand Down Expand Up @@ -95,9 +91,6 @@ class BrowserApplication extends BrowserCustomizableArea {
/** @type {typeof BrowserActions.prototype} */
actions = null;

/** @type {typeof BrowserPanels.prototype} */
panels = null;

/** @type {typeof BrowserStorage.prototype} */
storage = null;

Expand Down Expand Up @@ -249,7 +242,6 @@ class BrowserApplication extends BrowserCustomizableArea {
this.shortcuts = new BrowserShortcuts();
this.commands = new BrowserCommands(window);
this.actions = new BrowserActions(this);
this.panels = new BrowserPanels(window);
this.accessibility = new BrowserAccessibility(window);
this.prompts = new BrowserPrompts(window);
this.status = new BrowserStatus(window);
Expand Down
3 changes: 0 additions & 3 deletions components/actions/ActionRegistry.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ const ALL_ACTIONS = [
// browser.developer
"browser.developer.inspect",

// browser.panels
"browser.panels.open",

// browser.tabs
"browser.tabs.close_tab",
"browser.tabs.go_back",
Expand Down
49 changes: 0 additions & 49 deletions components/actions/content/browser/panels/open.js

This file was deleted.

7 changes: 1 addition & 6 deletions components/commands/content/tab-identity.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,7 @@ export class TabIdentityCommand extends TabCommand {
* @param {Event} event
*/
_openPanel(event) {
this.actions.run("browser.panels.open", {
id: "identity-panel",

opener: event.target,
anchor: "before after"
});
console.log("_openPanel");
}

/**
Expand Down

This file was deleted.

2 changes: 0 additions & 2 deletions components/customizableui/jar.mn
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ dot.jar:
content/widgets/browser-customizable-overflowable-area.js (content/browser-customizable-overflowable-area.js)
content/widgets/browser-customizable-overflowable-area.css (content/browser-customizable-overflowable-area.css)

content/widgets/browser-customizable-area-overflow-menu.js (content/browser-customizable-area-overflow-menu.js)

content/widgets/browser-customizable-template.js (content/browser-customizable-template.js)
content/widgets/browser-customizable-template.css (content/browser-customizable-template.css)

Expand Down
1 change: 0 additions & 1 deletion components/dev/content/dev-preferences-popout.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ class DevelopmentPreferencesPopout extends MozHTMLElement {
this.registerHandle("dot.tabs.debug_information.visible", false);
this.registerHandle("dot.customizable.debug_context.enabled", false);
this.registerHandle("dot.commands.loglevel", LOG_LEVELS);
this.registerHandle("dot.panels.debug_information.visible", false);
this.registerHandle("dot.tabs.in_animation_duration_ms", 50);
this.registerHandle("dot.tabs.out_animation_duration_ms", 30);
this.registerHandle("dot.customizable.loglevel", LOG_LEVELS);
Expand Down
7 changes: 0 additions & 7 deletions components/identity/content/browser-identity-panel.css

This file was deleted.

76 changes: 0 additions & 76 deletions components/identity/content/browser-identity-panel.js

This file was deleted.

2 changes: 0 additions & 2 deletions components/identity/jar.mn
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@

dot.jar:
% content dot %content/ contentaccessible=yes
content/widgets/browser-identity-panel.js (content/browser-identity-panel.js)
content/widgets/browser-identity-panel.css (content/browser-identity-panel.css)
Loading

0 comments on commit 5bc9c8f

Please sign in to comment.