Merge 613002c64a
into aca51cc11c
This commit is contained in:
commit
490a2c3f53
3 changed files with 7 additions and 5 deletions
|
@ -808,9 +808,8 @@ window.assignManager = {
|
|||
return this.createTabWrapper(url, cookieStoreId, index, active, openerTabId, groupId);
|
||||
} else {
|
||||
let confirmUrl = `${loadPage}?url=${this.encodeURLProperty(url)}&cookieStoreId=${cookieStoreId}`;
|
||||
let currentCookieStoreId;
|
||||
if (currentUserContextId) {
|
||||
currentCookieStoreId = backgroundLogic.cookieStoreId(currentUserContextId);
|
||||
const currentCookieStoreId = backgroundLogic.cookieStoreId(currentUserContextId);
|
||||
if (parseInt(currentUserContextId, 10) > 0) {
|
||||
confirmUrl += `¤tCookieStoreId=${currentCookieStoreId}`;
|
||||
}
|
||||
return this.createTabWrapper(
|
||||
|
|
|
@ -121,6 +121,9 @@ const backgroundLogic = {
|
|||
if (!cookieStoreId) {
|
||||
return false;
|
||||
}
|
||||
if (cookieStoreId === "firefox-default") {
|
||||
return "0";
|
||||
}
|
||||
const container = cookieStoreId.replace("firefox-container-", "");
|
||||
if (container !== cookieStoreId) {
|
||||
return container;
|
||||
|
@ -481,7 +484,7 @@ const backgroundLogic = {
|
|||
},
|
||||
|
||||
cookieStoreId(userContextId) {
|
||||
if(userContextId === 0) return "firefox-default";
|
||||
if (parseInt(userContextId, 10) === 0) return "firefox-default";
|
||||
return `firefox-container-${userContextId}`;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -73,7 +73,7 @@ describe("Assignment Comfirm Page Feature", function () {
|
|||
url: "moz-extension://fake/confirm-page.html?" +
|
||||
`url=${encodeURIComponent(url)}` +
|
||||
`&cookieStoreId=${this.webExt.tab.cookieStoreId}`,
|
||||
cookieStoreId: undefined,
|
||||
cookieStoreId: "firefox-default",
|
||||
openerTabId: null,
|
||||
index: 2,
|
||||
active: true
|
||||
|
|
Loading…
Add table
Reference in a new issue