Skip to content

Commit

Permalink
Fix bz#1823729 - Listen only for status on tab updated
Browse files Browse the repository at this point in the history
  • Loading branch information
dannycolin committed Aug 14, 2024
1 parent 1537e9f commit e1e010e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/_locales
10 changes: 6 additions & 4 deletions src/js/background/messageHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ const messageHandler = {
break;
case "assignAndReloadInContainer":
tab = await assignManager.reloadPageInContainer(
m.url,
m.url,
m.currentUserContextId,
m.newUserContextId,
m.tabIndex,
m.newUserContextId,
m.tabIndex,
m.active,
true
);
Expand Down Expand Up @@ -220,7 +220,9 @@ const messageHandler = {
// if it's a container tab wait for it to complete and
// unhide other tabs from this container
if (tab.cookieStoreId.startsWith("firefox-container")) {
browser.tabs.onUpdated.addListener(this.tabUpdateHandler);
browser.tabs.onUpdated.addListener(this.tabUpdateHandler, {
properties: ["status"]
});
}
}
}
Expand Down

0 comments on commit e1e010e

Please sign in to comment.