const netPromises = [ new Promise(resolve => {
expected.push({
resolve,
match: "Cookie “a” has “SameSite” policy set to “Lax” because it is missing a “SameSite” attribute, and “SameSite=Lax” is the default value for this attribute.",
});
}),
new Promise(resolve => {
expected.push({
resolve,
match: "Cookie “b” rejected because it has the “SameSite=None” attribute but is missing the “secure” attribute.",
});
}),
new Promise(resolve => {
expected.push({
resolve,
match: "Invalid “SameSite“ value for cookie “c”. The supported values are: “Lax“, “Strict“, “None“.",
});
}),
new Promise(resolve => {
expected.push({
resolve,
match: "Cookie “c” has “SameSite” policy set to “Lax” because it is missing a “SameSite” attribute, and “SameSite=Lax” is the default value for this attribute.",
});
}),
];
// Let's wait for the first set of console events.
await Promise.all(netPromises);
// the DOM list of events. const domPromises = [ new Promise(resolve => {
expected.push({
resolve,
match: "Cookie “d” has “SameSite” policy set to “Lax” because it is missing a “SameSite” attribute, and “SameSite=Lax” is the default value for this attribute.",
});
}),
new Promise(resolve => {
expected.push({
resolve,
match: "Cookie “e” rejected because it has the “SameSite=None” attribute but is missing the “secure” attribute.",
});
}),
new Promise(resolve => {
expected.push({
resolve,
match: "Invalid “SameSite“ value for cookie “f”. The supported values are: “Lax“, “Strict“, “None“.",
});
}),
new Promise(resolve => {
expected.push({
resolve,
match: "Cookie “f” has “SameSite” policy set to “Lax” because it is missing a “SameSite” attribute, and “SameSite=Lax” is the default value for this attribute.",
});
}),
];
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.