From 43165833dbb66890aa3739161dfc9c00dc0db09c Mon Sep 17 00:00:00 2001 From: Mike West Date: Tue, 3 Sep 2019 09:28:55 +0200 Subject: [PATCH] Scheme mismatch => `cross-site`. Addresses w3c/webappsec-fetch-metadata#34 --- index.bs | 7 ++++--- index.html | 53 +++++++++++++++++++++++++++++++++++------------------ 2 files changed, 39 insertions(+), 21 deletions(-) diff --git a/index.bs b/index.bs index 9116ed9..e9015a6 100644 --- a/index.bs +++ b/index.bs @@ -248,12 +248,13 @@ To set the `Sec-Fetch-Site` header for a [= 1. If |url| is [=same origin=] with |r|'s [=request/origin=], [=iteration/continue=]. - 2. If |r|'s [=request/origin=]'s [=registrable domain=] is not the same as |url|'s - [=registrable domain=], set |header|'s value to `cross-site` and [=iteration/break=]. + 2. If |r|'s [=request/origin=]'s [=origin/scheme=] is not the same as |url|'s + [=url/scheme=], or if |r|'s [=request/origin=]'s [=registrable domain=] is not the same + as |url|'s [=registrable domain=], set |header|'s value to `cross-site` and + [=iteration/break=]. 3. Set |header|'s value to `same-site`. - 6. Let |value| be the result of [$serialize Structured Header|serializing$] |header|. 7. [=header list/Set=] ``Sec-Fetch-Site``/|value| in |r|'s diff --git a/index.html b/index.html index 1ff773c..d5a4f65 100644 --- a/index.html +++ b/index.html @@ -1029,7 +1029,7 @@ } /* } */ - @supports (display:grid) { + @supports (display:grid) and (display:contents) { /* Use #toc over .toc to override non-@supports rules. */ #toc { display: grid; @@ -1212,9 +1212,9 @@ } } - - - + + +