зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
2c9c87fff1
Коммит
a438b78c1b
|
@ -35,7 +35,7 @@ add_task(async function() {
|
||||||
const sameSite2 = getRowValues(id2).sameSite;
|
const sameSite2 = getRowValues(id2).sameSite;
|
||||||
const sameSite3 = getRowValues(id3).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(sameSite2, "Lax", `sameSite2 is "Lax"`);
|
||||||
is(sameSite3, "Strict", `sameSite3 is "Strict"`);
|
is(sameSite3, "Strict", `sameSite3 is "Strict"`);
|
||||||
|
|
||||||
|
|
|
@ -39,12 +39,12 @@ loader.lazyRequireGetter(
|
||||||
true
|
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.
|
// that should not be translated.
|
||||||
const COOKIE_SAMESITE = {
|
const COOKIE_SAMESITE = {
|
||||||
LAX: "Lax",
|
LAX: "Lax",
|
||||||
STRICT: "Strict",
|
STRICT: "Strict",
|
||||||
UNSET: "Unset",
|
NONE: "None",
|
||||||
};
|
};
|
||||||
|
|
||||||
// GUID to be used as a separator in compound keys. This must match the same
|
// 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;
|
return COOKIE_SAMESITE.STRICT;
|
||||||
}
|
}
|
||||||
// cookie.SAMESITE_NONE
|
// cookie.SAMESITE_NONE
|
||||||
return COOKIE_SAMESITE.UNSET;
|
return COOKIE_SAMESITE.NONE;
|
||||||
},
|
},
|
||||||
|
|
||||||
populateStoresForHost(host) {
|
populateStoresForHost(host) {
|
||||||
|
|
|
@ -70,12 +70,12 @@ const Services = require("Services");
|
||||||
// The cache used in the `nsIURL` function.
|
// The cache used in the `nsIURL` function.
|
||||||
const gNSURLStore = new Map();
|
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.
|
// attribute that should not be translated.
|
||||||
const COOKIE_SAMESITE = {
|
const COOKIE_SAMESITE = {
|
||||||
LAX: "Lax",
|
LAX: "Lax",
|
||||||
STRICT: "Strict",
|
STRICT: "Strict",
|
||||||
UNSET: "Unset",
|
NONE: "None",
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -364,7 +364,7 @@ var NetworkHelper = {
|
||||||
case COOKIE_SAMESITE.STRICT:
|
case COOKIE_SAMESITE.STRICT:
|
||||||
return COOKIE_SAMESITE.STRICT;
|
return COOKIE_SAMESITE.STRICT;
|
||||||
default:
|
default:
|
||||||
return COOKIE_SAMESITE.UNSET;
|
return COOKIE_SAMESITE.NONE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче