Skip to content

Commit 347a057

Browse files
committed
fix currentCookieStoreId left undefined #1312
1 parent e44fcdf commit 347a057

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/js/background/assignManager.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,9 @@ const assignManager = {
490490
currentCookieStoreId = backgroundLogic.cookieStoreId(currentUserContextId);
491491
confirmUrl += `&currentCookieStoreId=${currentCookieStoreId}`;
492492
}
493+
else {
494+
currentCookieStoreId = "firefox-default";
495+
}
493496
browser.tabs.create({
494497
url: confirmUrl,
495498
cookieStoreId: currentCookieStoreId,

test/features/assignment.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe("Assignment Feature", () => {
3434
url: "moz-extension://multi-account-containers/confirm-page.html?" +
3535
`url=${encodeURIComponent(activeTab.url)}` +
3636
`&cookieStoreId=${activeTab.cookieStoreId}`,
37-
cookieStoreId: undefined,
37+
cookieStoreId: "firefox-default",
3838
openerTabId: null,
3939
index: 2,
4040
active: true

0 commit comments

Comments
 (0)