Bug 1668024 [wpt PR 25841] - Remove 'signed' from send-srr and srr-token-redemption., a=testonly

Automatic update from web-platform-tests
Remove 'signed' from send-srr and srr-token-redemption.

As part of the generalization of the Trust Token redemption record,
the protocol no longer specifies these as needing to be 'signed', so
the API types are updated to match, from send-srr to
send-redemption-record and srr-token-redemption to token-redemption.

Design: https://docs.google.com/document/d/1-4n1RLaJs8ANw34TsS6BVt7ARa7lK70F6aHFG2CL3Rc/edit#heading=h.6a92f2gfl9le
Bug: 1133310
Change-Id: Id6d668d10f59f3f0eac6a8f423e7c9a59134f2de
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2437697
Commit-Queue: Steven Valdez <svaldez@chromium.org>
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Reviewed-by: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: David Bertoni <dbertoni@chromium.org>
Reviewed-by: David Van Cleve <davidvc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#825609}

--

wpt-commits: b3a29a9c6b2c3622b4ce71786bb83ecd5a7d5b42
wpt-pr: 25841
This commit is contained in:
Steven Valdez 2020-11-11 10:27:42 +00:00 коммит произвёл moz-wptsync-bot
Родитель 8293a4f103
Коммит 012306ee92
6 изменённых файлов: 28 добавлений и 28 удалений

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

@ -3,14 +3,14 @@
window.onload = function() {
// When the trust-token-redemption feature policy is enabled, redemption
// and signing ("send-srr") should both be available; when it's disabled,
// and signing ("send-redemption-record") should both be available; when it's disabled,
// they should both be unavailable. Send the number of available operations
// upstream in order to enforce this in assertions.
let num_enabled = 4;
try {
new Request("https://issuer.example/", {
trustToken: {
type: "srr-token-redemption"
type: "token-redemption"
}
});
} catch (e) {
@ -19,7 +19,7 @@
try {
new Request("https://destination.example/", {
trustToken: {
type: "send-srr",
type: "send-redemption-record",
issuers: ["https://issuer.example/"]
}
});
@ -31,7 +31,7 @@
const xhr = new XMLHttpRequest();
xhr.open("GET", "https://issuer.example/");
xhr.setTrustToken({
type: "srr-token-redemption"
type: "token-redemption"
});
} catch (e) {
num_enabled--;
@ -41,7 +41,7 @@
const xhr = new XMLHttpRequest();
xhr.open("GET", "https://destination.example/");
xhr.setTrustToken({
type: "send-srr",
type: "send-redemption-record",
issuers: ["https://issuer.example/"]
});
} catch (e) {

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

@ -18,12 +18,12 @@
// and XHR interfaces.
new Request("https://issuer.example/", {
trustToken: {
type: "srr-token-redemption"
type: "token-redemption"
}
});
new Request("https://destination.example/", {
trustToken: {
type: "send-srr", // signing
type: "send-redemption-record", // signing
issuers: ["https://issuer.example/"]
}
});
@ -31,13 +31,13 @@
const redemption_xhr = new XMLHttpRequest();
redemption_xhr.open("GET", "https://issuer.example/");
redemption_xhr.setTrustToken({
type: "srr-token-redemption"
type: "token-redemption"
});
const signing_xhr = new XMLHttpRequest();
signing_xhr.open("GET", "https://destination.example/");
signing_xhr.setTrustToken({
type: "send-srr", // signing
type: "send-redemption-record", // signing
issuers: ["https://issuer.example/"]
});
} catch (e) {

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

@ -3,14 +3,14 @@
window.onload = function() {
// When the trust-token-redemption permissions policy is enabled, redemption
// and signing ("send-srr") should both be available; when it's disabled,
// and signing ("send-redemption-record") should both be available; when it's disabled,
// they should both be unavailable. Send the number of available operations
// upstream in order to enforce this in assertions.
let num_enabled = 4;
try {
new Request("https://issuer.example/", {
trustToken: {
type: "srr-token-redemption"
type: "token-redemption"
}
});
} catch (e) {
@ -19,7 +19,7 @@
try {
new Request("https://destination.example/", {
trustToken: {
type: "send-srr",
type: "send-redemption-record",
issuers: ["https://issuer.example/"]
}
});
@ -31,7 +31,7 @@
const xhr = new XMLHttpRequest();
xhr.open("GET", "https://issuer.example/");
xhr.setTrustToken({
type: "srr-token-redemption"
type: "token-redemption"
});
} catch (e) {
num_enabled--;
@ -41,7 +41,7 @@
const xhr = new XMLHttpRequest();
xhr.open("GET", "https://destination.example/");
xhr.setTrustToken({
type: "send-srr",
type: "send-redemption-record",
issuers: ["https://issuer.example/"]
});
} catch (e) {

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

@ -18,12 +18,12 @@
// and XHR interfaces.
new Request("https://issuer.example/", {
trustToken: {
type: "srr-token-redemption"
type: "token-redemption"
}
});
new Request("https://destination.example/", {
trustToken: {
type: "send-srr", // signing
type: "send-redemption-record", // signing
issuers: ["https://issuer.example/"]
}
});
@ -31,13 +31,13 @@
const redemption_xhr = new XMLHttpRequest();
redemption_xhr.open("GET", "https://issuer.example/");
redemption_xhr.setTrustToken({
type: "srr-token-redemption"
type: "token-redemption"
});
const signing_xhr = new XMLHttpRequest();
signing_xhr.open("GET", "https://destination.example/");
signing_xhr.setTrustToken({
type: "send-srr", // signing
type: "send-redemption-record", // signing
issuers: ["https://issuer.example/"]
});
} catch (e) {

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

@ -71,7 +71,7 @@
let request = new XMLHttpRequest();
request.open('GET', 'https://trusttoken.example');
request.setTrustToken({
type: "send-srr",
type: "send-redemption-record",
issuers: []
});
});
@ -82,7 +82,7 @@
let request = new XMLHttpRequest();
request.open('GET', 'https://trusttoken.example');
request.setTrustToken({
type: "send-srr",
type: "send-redemption-record",
issuers: [3]
});
});
@ -93,7 +93,7 @@
let request = new XMLHttpRequest();
request.open('GET', 'https://trusttoken.example');
request.setTrustToken({
type: "send-srr",
type: "send-redemption-record",
issuers: ["not a valid URL"]
});
});
@ -104,7 +104,7 @@
let request = new XMLHttpRequest();
request.open('GET', 'https://trusttoken.example');
request.setTrustToken({
type: "send-srr",
type: "send-redemption-record",
issuers: ["http://not-secure.com"]
});
});
@ -114,7 +114,7 @@
let request = new XMLHttpRequest();
request.open('GET', 'https://trusttoken.example');
request.setTrustToken({
type: "send-srr",
type: "send-redemption-record",
issuers: ["http://localhost"]
});
}, 'Since localhost URLs are potentially trustworthy, setting an issuer to localhost should succeed.');

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

@ -50,7 +50,7 @@
assert_throws_js(TypeError, () => {
new Request('https://example.com', {
trustToken: {
type: "send-srr",
type: "send-redemption-record",
issuers: []
}
});
@ -61,7 +61,7 @@
assert_throws_js(TypeError, () => {
new Request('https://example.com', {
trustToken: {
type: "send-srr",
type: "send-redemption-record",
issuers: [3]
}
});
@ -72,7 +72,7 @@
assert_throws_js(TypeError, () => {
new Request('https://example.com', {
trustToken: {
type: "send-srr",
type: "send-redemption-record",
issuers: ["not a valid URL"]
}
});
@ -83,7 +83,7 @@
assert_throws_js(TypeError, () => {
new Request('https://example.com', {
trustToken: {
type: "send-srr",
type: "send-redemption-record",
issuers: ["http://not-secure.com"]
}
});
@ -93,7 +93,7 @@
test(() => {
new Request('https://example.com', {
trustToken: {
type: "send-srr",
type: "send-redemption-record",
issuers: ["http://localhost"]
}
});