Skip to content

Commit

Permalink
Bug 1822037 - don't bother setting isAppTab for extension browsers, r…
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsk committed Mar 24, 2023
1 parent fafcedc commit cafaec2
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions browser/base/content/webext-panels.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ function getBrowser(panel) {
};

browser.addEventListener("DidChangeBrowserRemoteness", initBrowser);
// Potentially unnecessary: bug 1822037 will evaluate further.
browser.browsingContext.isAppTab = true;
return readyPromise.then(initBrowser);
}

Expand Down
2 changes: 0 additions & 2 deletions browser/components/extensions/ExtensionPopups.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,6 @@ class BasePopup {
};

browser.addEventListener("DidChangeBrowserRemoteness", initBrowser); // eslint-disable-line mozilla/balanced-listeners
// Potentially unnecessary: bug 1822037 will evaluate further.
browser.browsingContext.isAppTab = true;

if (!popupURL) {
// For remote browsers, we can't do any setup until the frame loader is
Expand Down
4 changes: 0 additions & 4 deletions toolkit/components/extensions/ExtensionParent.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -512,10 +512,6 @@ GlobalManager = {
data.viewType = browser.getAttribute("webextension-view-type");
if (data.viewType) {
GlobalManager.frameData.set(browser, data);
// Potentially unnecessary: bug 1822037 will evaluate further.
browser.browsingContext.isAppTab = ["popup", "sidebar"].includes(
data.viewType
);
}
},

Expand Down
2 changes: 0 additions & 2 deletions toolkit/mozapps/extensions/content/aboutaddons.js
Original file line number Diff line number Diff line change
Expand Up @@ -1849,8 +1849,6 @@ class InlineOptionsBrowser extends HTMLElement {
browserOptions.stylesheets = extensionStylesheets;
}

// Potentially unnecessary: bug 1822037 will evaluate further.
browser.browsingContext.isAppTab = true;
mm.sendAsyncMessage("Extension:InitBrowser", browserOptions);

if (browser.isConnectedAndReady) {
Expand Down

0 comments on commit cafaec2

Please sign in to comment.