Skip to content

Commit 97891f6

Browse files
authored
Merge pull request #2659 from dannycolin/bz#1823729
Fix bz#1823729 - Listen only for status on tab updated
2 parents a53eb64 + 51ead29 commit 97891f6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/js/background/messageHandler.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ const messageHandler = {
9696
break;
9797
case "assignAndReloadInContainer":
9898
tab = await assignManager.reloadPageInContainer(
99-
m.url,
99+
m.url,
100100
m.currentUserContextId,
101-
m.newUserContextId,
102-
m.tabIndex,
101+
m.newUserContextId,
102+
m.tabIndex,
103103
m.active,
104104
true
105105
);
@@ -226,7 +226,9 @@ const messageHandler = {
226226
// if it's a container tab wait for it to complete and
227227
// unhide other tabs from this container
228228
if (tab.cookieStoreId.startsWith("firefox-container")) {
229-
browser.tabs.onUpdated.addListener(this.tabUpdateHandler);
229+
browser.tabs.onUpdated.addListener(this.tabUpdateHandler, {
230+
properties: ["status"]
231+
});
230232
}
231233
}
232234
}

0 commit comments

Comments
 (0)