зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1649802 - Expose cookie sameSite=lax-by-default as experimental feature, r=jaws,fluent-reviewers,mconca,preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D81878
This commit is contained in:
Родитель
383b8d065d
Коммит
11aed139b7
|
@ -16,7 +16,11 @@ add_task(async function() {
|
|||
await openPreferencesViaOpenPreferencesAPI("paneGeneral", {
|
||||
leaveOpen: true,
|
||||
});
|
||||
await evaluateSearchResults("cookies", ["siteDataGroup", "trackingGroup"]);
|
||||
await evaluateSearchResults("cookies", [
|
||||
"siteDataGroup",
|
||||
"trackingGroup",
|
||||
"pane-experimental-featureGates",
|
||||
]);
|
||||
BrowserTestUtils.removeTab(gBrowser.selectedTab);
|
||||
});
|
||||
|
||||
|
|
|
@ -28,3 +28,23 @@ type = "boolean"
|
|||
bug-numbers = [1443863]
|
||||
is-public = {default = false, nightly = true}
|
||||
default-value = false
|
||||
|
||||
[cookie-samesite-lax-by-default]
|
||||
title = "experimental-features-cookie-samesite-lax-by-default"
|
||||
description = "experimental-features-cookie-samesite-lax-by-default-description"
|
||||
restart-required = false
|
||||
preference = "network.cookie.sameSite.laxByDefault"
|
||||
type = "boolean"
|
||||
bug-numbers = [1618610]
|
||||
default-value = {default = false, nightly = true}
|
||||
is-public = true
|
||||
|
||||
[cookie-samesite-none-requires-secure]
|
||||
title = "experimental-features-cookie-samesite-none-requires-secure"
|
||||
description = "experimental-features-cookie-samesite-none-requires-secure-description"
|
||||
restart-required = false
|
||||
preference = "network.cookie.sameSite.noneRequiresSecure"
|
||||
type = "boolean"
|
||||
bug-numbers = [1618610]
|
||||
is-public = true
|
||||
default-value = {default = false, nightly = true}
|
||||
|
|
|
@ -19,3 +19,15 @@ experimental-features-web-gpu-description = Experimental API for graphics and co
|
|||
experimental-features-avif =
|
||||
.label = AVIF
|
||||
experimental-features-avif-description = Experimental support for AVIF: AV1 Image File Format
|
||||
|
||||
# The title of the experiment should be kept in English as it may be referenced
|
||||
# by various online articles and is technical in nature.
|
||||
experimental-features-cookie-samesite-lax-by-default =
|
||||
.label = Cookies: SameSite=lax by default
|
||||
experimental-features-cookie-samesite-lax-by-default-description = Treat cookies as “sameSite=lax” by default if no “sameSite” attribute is specified. Developers must opt-in to the current status quo of unrestricted use by explicitly asserting “sameSite=none”.
|
||||
|
||||
# The title of the experiment should be kept in English as it may be referenced
|
||||
# by various online articles and is technical in nature.
|
||||
experimental-features-cookie-samesite-none-requires-secure =
|
||||
.label = Cookies: SameSite=none requires secure attribute
|
||||
experimental-features-cookie-samesite-none-requires-secure-description = Cookies with “sameSite=none” attribute require the secure attribute. This feature requires “Cookies: SameSite=lax by default”.
|
||||
|
|
|
@ -36,6 +36,18 @@ registerCleanupFunction(function() {
|
|||
});
|
||||
|
||||
var tests = [
|
||||
function setup(done) {
|
||||
SpecialPowers.pushPrefEnv(
|
||||
{
|
||||
set: [
|
||||
["network.cookie.sameSite.laxByDefault", false],
|
||||
["network.cookie.sameSite.noneRequiresSecure", false],
|
||||
],
|
||||
},
|
||||
done
|
||||
);
|
||||
},
|
||||
|
||||
function snapshotSchema(done) {
|
||||
Troubleshoot.snapshot(function(snapshot) {
|
||||
try {
|
||||
|
|
Загрузка…
Ссылка в новой задаче