Skip to content

Commit 5bc9c8f

Browse files
committed
🔥 Remove old panels API in preparation for customizable-based API
1 parent 75fef1c commit 5bc9c8f

26 files changed

+1
-1379
lines changed

‎base/content/browser-elements.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@ let noCallbackElements = [
4242

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

45-
"chrome://dot/content/widgets/browser-panel.js",
46-
"chrome://dot/content/widgets/browser-panel-area.js",
47-
"chrome://dot/content/widgets/browser-multipanel-area.js",
48-
"chrome://dot/content/widgets/browser-panel-menu.js",
49-
"chrome://dot/content/widgets/browser-panel-menuitem.js",
50-
51-
"chrome://dot/content/widgets/browser-customizable-area-overflow-menu.js",
52-
5345
"chrome://dot/content/widgets/browser-group.js",
5446
"chrome://dot/content/widgets/browser-separator.js",
5547

@@ -58,7 +50,6 @@ let noCallbackElements = [
5850
"chrome://dot/content/widgets/browser-toolbar-button.js",
5951
"chrome://dot/content/widgets/browser-tab-button.js",
6052
"chrome://dot/content/widgets/browser-urlbar-button.js",
61-
"chrome://dot/content/widgets/browser-panel-button.js",
6253

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

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

76-
"chrome://dot/content/widgets/browser-identity-panel.js",
77-
7867
"chrome://dot/content/widgets/browser-tab.js",
7968
"chrome://dot/content/widgets/browser-tab-icon.js",
8069
"chrome://dot/content/widgets/browser-tab-label.js",

‎base/content/browser.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ var { BrowserActions } = ChromeUtils.importESModule(
3434
"resource:///modules/BrowserActions.sys.mjs"
3535
);
3636

37-
var { BrowserPanels } = ChromeUtils.importESModule(
38-
"resource:///modules/BrowserPanels.sys.mjs"
39-
);
40-
4137
var { BrowserStorage } = ChromeUtils.importESModule(
4238
"resource:///modules/BrowserStorage.sys.mjs"
4339
);
@@ -95,9 +91,6 @@ class BrowserApplication extends BrowserCustomizableArea {
9591
/** @type {typeof BrowserActions.prototype} */
9692
actions = null;
9793

98-
/** @type {typeof BrowserPanels.prototype} */
99-
panels = null;
100-
10194
/** @type {typeof BrowserStorage.prototype} */
10295
storage = null;
10396

@@ -249,7 +242,6 @@ class BrowserApplication extends BrowserCustomizableArea {
249242
this.shortcuts = new BrowserShortcuts();
250243
this.commands = new BrowserCommands(window);
251244
this.actions = new BrowserActions(this);
252-
this.panels = new BrowserPanels(window);
253245
this.accessibility = new BrowserAccessibility(window);
254246
this.prompts = new BrowserPrompts(window);
255247
this.status = new BrowserStatus(window);

‎components/actions/ActionRegistry.sys.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ const ALL_ACTIONS = [
1414
// browser.developer
1515
"browser.developer.inspect",
1616

17-
// browser.panels
18-
"browser.panels.open",
19-
2017
// browser.tabs
2118
"browser.tabs.close_tab",
2219
"browser.tabs.go_back",

‎components/actions/content/browser/panels/open.js

Lines changed: 0 additions & 49 deletions
This file was deleted.

‎components/commands/content/tab-identity.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,7 @@ export class TabIdentityCommand extends TabCommand {
101101
* @param {Event} event
102102
*/
103103
_openPanel(event) {
104-
this.actions.run("browser.panels.open", {
105-
id: "identity-panel",
106-
107-
opener: event.target,
108-
anchor: "before after"
109-
});
104+
console.log("_openPanel");
110105
}
111106

112107
/**

‎components/customizableui/content/browser-customizable-area-overflow-menu.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

‎components/customizableui/jar.mn

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ dot.jar:
1212
content/widgets/browser-customizable-overflowable-area.js (content/browser-customizable-overflowable-area.js)
1313
content/widgets/browser-customizable-overflowable-area.css (content/browser-customizable-overflowable-area.css)
1414

15-
content/widgets/browser-customizable-area-overflow-menu.js (content/browser-customizable-area-overflow-menu.js)
16-
1715
content/widgets/browser-customizable-template.js (content/browser-customizable-template.js)
1816
content/widgets/browser-customizable-template.css (content/browser-customizable-template.css)
1917

‎components/dev/content/dev-preferences-popout.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ class DevelopmentPreferencesPopout extends MozHTMLElement {
275275
this.registerHandle("dot.tabs.debug_information.visible", false);
276276
this.registerHandle("dot.customizable.debug_context.enabled", false);
277277
this.registerHandle("dot.commands.loglevel", LOG_LEVELS);
278-
this.registerHandle("dot.panels.debug_information.visible", false);
279278
this.registerHandle("dot.tabs.in_animation_duration_ms", 50);
280279
this.registerHandle("dot.tabs.out_animation_duration_ms", 30);
281280
this.registerHandle("dot.customizable.loglevel", LOG_LEVELS);

‎components/identity/content/browser-identity-panel.css

Lines changed: 0 additions & 7 deletions
This file was deleted.

‎components/identity/content/browser-identity-panel.js

Lines changed: 0 additions & 76 deletions
This file was deleted.

‎components/identity/jar.mn

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,3 @@
66

77
dot.jar:
88
% content dot %content/ contentaccessible=yes
9-
content/widgets/browser-identity-panel.js (content/browser-identity-panel.js)
10-
content/widgets/browser-identity-panel.css (content/browser-identity-panel.css)

0 commit comments

Comments
 (0)