MV3: Remove pageAction

https://github.com/mozilla/multi-account-containers/pull/2477
This commit is contained in:
BPower0036 2023-01-18 06:41:26 +00:00 committed by GitHub
parent 50fd661261
commit 85c3e92ae5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,9 +20,6 @@ const messageHandler = {
case "resetSync":
response = sync.resetSync();
break;
case "resetPageAction":
response = assignManager.resetPageAction();
break;
case "deleteContainer":
response = backgroundLogic.deleteContainer(m.message.userContextId);
break;
@ -205,17 +202,6 @@ const messageHandler = {
});
}, {urls: ["<all_urls>"], types: ["main_frame"]});
browser.tabs.onUpdated.addListener((tabId) => {
// check if the page action is enabled right away to avoid flashing
browser.storage.local.get({ pageActionEnabled: true }).then(({ pageActionEnabled }) => {
if (pageActionEnabled) {
browser.pageAction.show(tabId);
}
}).catch(e => {
throw e;
});
}, { properties: ["status"] });
browser.tabs.onCreated.addListener((tab) => {
// lets remember the last tab created so we can close it if it looks like a redirect
this.lastCreatedTab = tab;