Bug 1791770 - Prevent add-ons from showing Fx View tab. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D158009
This commit is contained in:
Shane Hughes
2022-09-26 19:33:52 +00:00
parent 0ff2264b28
commit 1577034f2f
2 changed files with 27 additions and 3 deletions

View File

@@ -1096,9 +1096,7 @@
this._selectedBrowser = newBrowser;
this._selectedTab = newTab;
if (newTab != FirefoxViewHandler.tab) {
this.showTab(newTab);
}
this.showTab(newTab);
this._appendStatusPanel();
@@ -4667,6 +4665,9 @@
},
showTab(aTab) {
if (aTab == FirefoxViewHandler.tab) {
return;
}
if (aTab.hidden) {
aTab.removeAttribute("hidden");
this._invalidateCachedTabs();