Bug 1609807 - DevTools: Use label 'None' for SameSite=None cookie values. r=nchevobbe

bug-id: 1609807

Differential Revision: https://phabricator.services.mozilla.com/D60242

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Brandon Kraft 2020-01-23 07:34:27 +00:00
Родитель 2c9c87fff1
Коммит a438b78c1b
3 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -35,7 +35,7 @@ add_task(async function() {
const sameSite2 = getRowValues(id2).sameSite;
const sameSite3 = getRowValues(id3).sameSite;
is(sameSite1, "Unset", `sameSite1 is "Unset"`);
is(sameSite1, "None", `sameSite1 is "None"`);
is(sameSite2, "Lax", `sameSite2 is "Lax"`);
is(sameSite3, "Strict", `sameSite3 is "Strict"`);

Просмотреть файл

@ -39,12 +39,12 @@ loader.lazyRequireGetter(
true
);
// "Lax", "Strict" and "Unset" are special values of the sameSite property
// "Lax", "Strict" and "None" are special values of the sameSite property
// that should not be translated.
const COOKIE_SAMESITE = {
LAX: "Lax",
STRICT: "Strict",
UNSET: "Unset",
NONE: "None",
};
// GUID to be used as a separator in compound keys. This must match the same
@ -598,7 +598,7 @@ StorageActors.createActor(
return COOKIE_SAMESITE.STRICT;
}
// cookie.SAMESITE_NONE
return COOKIE_SAMESITE.UNSET;
return COOKIE_SAMESITE.NONE;
},
populateStoresForHost(host) {

Просмотреть файл

@ -70,12 +70,12 @@ const Services = require("Services");
// The cache used in the `nsIURL` function.
const gNSURLStore = new Map();
// "Lax", "Strict" and "Unset" are special values of the SameSite cookie
// "Lax", "Strict" and "None" are special values of the SameSite cookie
// attribute that should not be translated.
const COOKIE_SAMESITE = {
LAX: "Lax",
STRICT: "Strict",
UNSET: "Unset",
NONE: "None",
};
/**
@ -364,7 +364,7 @@ var NetworkHelper = {
case COOKIE_SAMESITE.STRICT:
return COOKIE_SAMESITE.STRICT;
default:
return COOKIE_SAMESITE.UNSET;
return COOKIE_SAMESITE.NONE;
}
}