Skip to content

Commit

Permalink
🔥 Remove compat logic for firing Mozilla compatible tab select events
Browse files Browse the repository at this point in the history
  • Loading branch information
kierandrewett committed Nov 21, 2023
1 parent ea2aef9 commit fed84b3
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions base/content/browser-compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,7 @@ var gBrowser = {
});
},

_initCompat() {
window.addEventListener("BrowserTabs::TabSelect", () => {
const event = new CustomEvent("TabSelect", {
bubbles: true,
cancelable: false,
detail: {}
});

this._tabContainerEl.dispatchEvent(event);
});
}
_initCompat() {}
};

window.addEventListener("load", gBrowser._initCompat.bind(this), {
Expand Down

0 comments on commit fed84b3

Please sign in to comment.