Fix bz#1823729 - Listen only for status on tab updated

This commit is contained in:
Danny Colin 2024-08-28 13:52:24 -04:00
parent 077c7e08c8
commit 51ead29d2b

View file

@ -90,10 +90,10 @@ const messageHandler = {
break; break;
case "assignAndReloadInContainer": case "assignAndReloadInContainer":
tab = await assignManager.reloadPageInContainer( tab = await assignManager.reloadPageInContainer(
m.url, m.url,
m.currentUserContextId, m.currentUserContextId,
m.newUserContextId, m.newUserContextId,
m.tabIndex, m.tabIndex,
m.active, m.active,
true true
); );
@ -220,7 +220,9 @@ const messageHandler = {
// if it's a container tab wait for it to complete and // if it's a container tab wait for it to complete and
// unhide other tabs from this container // unhide other tabs from this container
if (tab.cookieStoreId.startsWith("firefox-container")) { if (tab.cookieStoreId.startsWith("firefox-container")) {
browser.tabs.onUpdated.addListener(this.tabUpdateHandler); browser.tabs.onUpdated.addListener(this.tabUpdateHandler, {
properties: ["status"]
});
} }
} }
} }