Skip to content

Commit

Permalink
🔥 Remove mousedown event handler for internal tab
Browse files Browse the repository at this point in the history
  • Loading branch information
kierandrewett committed Aug 20, 2023
1 parent 51969b7 commit 10ad8b5
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions components/tabs/content/browser-internal-tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ class BrowserTab extends MozElements.MozTab {
TAB_PROGRESS_BUSY = 1;
TAB_PROGRESS_TRANSIT = 2;

REGISTERED_EVENTS = [
"mousedown",
]

constructor() {
super();

Expand Down Expand Up @@ -226,20 +222,12 @@ class BrowserTab extends MozElements.MozTab {
this.updateIcon(kDefaultTabIcon);
}

for (const event of this.REGISTERED_EVENTS) {
this.addEventListener(event, this);
}

document.addEventListener("BrowserTabs::TabSelect", this);
}

disconnectedCallback() {
if (this.delayConnectedCallback()) return;

for (const event of this.REGISTERED_EVENTS) {
this.removeEventListener(event, this);
}

document.removeEventListener("BrowserTabs::TabSelect", this);

this.webContents.removeEventListener("pagetitlechanged", this);
Expand Down

0 comments on commit 10ad8b5

Please sign in to comment.