Skip to content

Commit

Permalink
fix currentCookieStoreId left undefined #1312
Browse files Browse the repository at this point in the history
  • Loading branch information
garywill committed Dec 9, 2019
1 parent e44fcdf commit 347a057
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/js/background/assignManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,9 @@ const assignManager = {
currentCookieStoreId = backgroundLogic.cookieStoreId(currentUserContextId);
confirmUrl += `&currentCookieStoreId=${currentCookieStoreId}`;
}
else {
currentCookieStoreId = "firefox-default";
}
browser.tabs.create({
url: confirmUrl,
cookieStoreId: currentCookieStoreId,
Expand Down
2 changes: 1 addition & 1 deletion test/features/assignment.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe("Assignment Feature", () => {
url: "moz-extension://multi-account-containers/confirm-page.html?" +
`url=${encodeURIComponent(activeTab.url)}` +
`&cookieStoreId=${activeTab.cookieStoreId}`,
cookieStoreId: undefined,
cookieStoreId: "firefox-default",
openerTabId: null,
index: 2,
active: true
Expand Down

0 comments on commit 347a057

Please sign in to comment.