|
7 | 7 | { |
8 | 8 | "name": "set `Sec-Fetch-Dest`", |
9 | 9 | "href": "https://w3c.github.io/webappsec-fetch-metadata/#abstract-opdef-set-dest", |
10 | | - "html": "To <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"abstract-op\" data-export=\"\" data-lt=\"set-dest\" id=\"abstract-opdef-set-dest\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">set the <code>Sec-Fetch-Dest</code> header</dfn><span style=\"position: relative; height: 0px;\"></span><span style=\"position: relative; height: 0px;\"></span> for a <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request\" id=\"ref-for-concept-request③\">request</a> <var>r</var>:", |
| 10 | + "html": "To <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"abstract-op\" data-export=\"\" data-lt=\"set-dest\" id=\"abstract-opdef-set-dest\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">set the <code>Sec-Fetch-Dest</code> header</dfn> for a <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request\" id=\"ref-for-concept-request③\">request</a> <var>r</var>:", |
11 | 11 | "rationale": ".algorithm", |
12 | 12 | "steps": [ |
13 | 13 | { |
14 | 14 | "html": "<p class=\"assertion\">Assert: <var>r</var>’s <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request-url\" id=\"ref-for-concept-request-url\">url</a> is a <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/secure-contexts/#potentially-trustworthy-url\" id=\"ref-for-potentially-trustworthy-url\">potentially trustworthy URL</a>.</p>" |
15 | 15 | }, |
16 | 16 | { |
17 | | - "html": "<p>Let <var>header</var> be a <a data-link-type=\"dfn\" href=\"https://tools.ietf.org/html/draft-ietf-httpbis-header-structure#\" id=\"ref-for-something①\">Structured Header</a> whose value is a <a data-link-type=\"dfn\" href=\"https://tools.ietf.org/html/draft-ietf-httpbis-header-structure#section-3.7\" id=\"ref-for-section-3.7①\">token</a>.</p>" |
| 17 | + "html": "<p>Let <var>header</var> be a <a data-link-type=\"dfn\" href=\"https://www.rfc-editor.org/rfc/rfc9651.html#name-introduction\" id=\"ref-for-name-introduction①\">Structured Field</a> whose value is a <a data-link-type=\"dfn\" href=\"https://www.rfc-editor.org/rfc/rfc9651.html#name-tokens\" id=\"ref-for-name-tokens①\">token</a>.</p>" |
18 | 18 | }, |
19 | 19 | { |
20 | 20 | "html": "<p>If <var>r</var>’s <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request-destination\" id=\"ref-for-concept-request-destination②\">destination</a> is the empty string, set <var>header</var>’s value to the string\n\"<code>empty</code>\". Otherwise, set <var>header</var>’s value to <var>r</var>’s <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request-destination\" id=\"ref-for-concept-request-destination③\">destination</a>.</p>" |
|
27 | 27 | { |
28 | 28 | "name": "set `Sec-Fetch-Mode`", |
29 | 29 | "href": "https://w3c.github.io/webappsec-fetch-metadata/#abstract-opdef-set-mode", |
30 | | - "html": "To <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"abstract-op\" data-export=\"\" data-lt=\"set-mode\" id=\"abstract-opdef-set-mode\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">set the <code>Sec-Fetch-Mode</code> header</dfn><span style=\"position: relative; height: 0px;\"></span><span style=\"position: relative; height: 0px;\"></span> for a <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request\" id=\"ref-for-concept-request⑤\">request</a> <var>r</var>:", |
| 30 | + "html": "To <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"abstract-op\" data-export=\"\" data-lt=\"set-mode\" id=\"abstract-opdef-set-mode\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">set the <code>Sec-Fetch-Mode</code> header</dfn> for a <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request\" id=\"ref-for-concept-request⑤\">request</a> <var>r</var>:", |
31 | 31 | "rationale": ".algorithm", |
32 | 32 | "steps": [ |
33 | 33 | { |
34 | 34 | "html": "<p class=\"assertion\">Assert: <var>r</var>’s <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request-url\" id=\"ref-for-concept-request-url①\">url</a> is a <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/secure-contexts/#potentially-trustworthy-url\" id=\"ref-for-potentially-trustworthy-url①\">potentially trustworthy URL</a>.</p>" |
35 | 35 | }, |
36 | 36 | { |
37 | | - "html": "<p>Let <var>header</var> be a <a data-link-type=\"dfn\" href=\"https://tools.ietf.org/html/draft-ietf-httpbis-header-structure#\" id=\"ref-for-something③\">Structured Header</a> whose value is a <a data-link-type=\"dfn\" href=\"https://tools.ietf.org/html/draft-ietf-httpbis-header-structure#section-3.7\" id=\"ref-for-section-3.7④\">token</a>.</p>" |
| 37 | + "html": "<p>Let <var>header</var> be a <a data-link-type=\"dfn\" href=\"https://www.rfc-editor.org/rfc/rfc9651.html#name-introduction\" id=\"ref-for-name-introduction③\">Structured Field</a> whose value is a <a data-link-type=\"dfn\" href=\"https://www.rfc-editor.org/rfc/rfc9651.html#name-tokens\" id=\"ref-for-name-tokens④\">token</a>.</p>" |
38 | 38 | }, |
39 | 39 | { |
40 | 40 | "html": "<p>Set <var>header</var>’s value to <var>r</var>’s <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request-mode\" id=\"ref-for-concept-request-mode①\">mode</a>.</p>" |
|
47 | 47 | { |
48 | 48 | "name": "set `Sec-Fetch-Site`", |
49 | 49 | "href": "https://w3c.github.io/webappsec-fetch-metadata/#abstract-opdef-set-site", |
50 | | - "html": "To <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"abstract-op\" data-export=\"\" data-lt=\"set-site\" id=\"abstract-opdef-set-site\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">set the <code>Sec-Fetch-Site</code> header</dfn><span style=\"position: relative; height: 0px;\"></span><span style=\"position: relative; height: 0px;\"></span> for a <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request\" id=\"ref-for-concept-request⑦\">request</a> <var>r</var>:", |
| 50 | + "html": "To <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"abstract-op\" data-export=\"\" data-lt=\"set-site\" id=\"abstract-opdef-set-site\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">set the <code>Sec-Fetch-Site</code> header</dfn> for a <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request\" id=\"ref-for-concept-request⑦\">request</a> <var>r</var>:", |
51 | 51 | "rationale": ".algorithm", |
52 | 52 | "steps": [ |
53 | 53 | { |
54 | 54 | "html": "<p class=\"assertion\">Assert: <var>r</var>’s <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request-url\" id=\"ref-for-concept-request-url②\">url</a> is a <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/secure-contexts/#potentially-trustworthy-url\" id=\"ref-for-potentially-trustworthy-url②\">potentially trustworthy URL</a>.</p>" |
55 | 55 | }, |
56 | 56 | { |
57 | | - "html": "<p>Let <var>header</var> be a <a data-link-type=\"dfn\" href=\"https://tools.ietf.org/html/draft-ietf-httpbis-header-structure#\" id=\"ref-for-something⑤\">Structured Header</a> whose value is a <a data-link-type=\"dfn\" href=\"https://tools.ietf.org/html/draft-ietf-httpbis-header-structure#section-3.7\" id=\"ref-for-section-3.7⑥\">token</a>.</p>" |
| 57 | + "html": "<p>Let <var>header</var> be a <a data-link-type=\"dfn\" href=\"https://www.rfc-editor.org/rfc/rfc9651.html#name-introduction\" id=\"ref-for-name-introduction⑤\">Structured Field</a> whose value is a <a data-link-type=\"dfn\" href=\"https://www.rfc-editor.org/rfc/rfc9651.html#name-tokens\" id=\"ref-for-name-tokens⑥\">token</a>.</p>" |
58 | 58 | }, |
59 | 59 | { |
60 | 60 | "html": "<p>Set <var>header</var>’s value to <code>same-origin</code>.</p>" |
|
88 | 88 | { |
89 | 89 | "name": "set `Sec-Fetch-User`", |
90 | 90 | "href": "https://w3c.github.io/webappsec-fetch-metadata/#abstract-opdef-set-user", |
91 | | - "html": "To <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"abstract-op\" data-export=\"\" data-lt=\"set-user\" id=\"abstract-opdef-set-user\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">set the <code>Sec-Fetch-User</code> header</dfn><span style=\"position: relative; height: 0px;\"></span><span style=\"position: relative; height: 0px;\"></span> for a <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request\" id=\"ref-for-concept-request⑧\">request</a> <var>r</var>:", |
| 91 | + "html": "To <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"abstract-op\" data-export=\"\" data-lt=\"set-user\" id=\"abstract-opdef-set-user\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">set the <code>Sec-Fetch-User</code> header</dfn> for a <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request\" id=\"ref-for-concept-request⑧\">request</a> <var>r</var>:", |
92 | 92 | "rationale": ".algorithm", |
93 | 93 | "steps": [ |
94 | 94 | { |
|
98 | 98 | "html": "<p>If <var>r</var> is not a <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#navigation-request\" id=\"ref-for-navigation-request③\">navigation request</a>, or if <var>r</var>’s <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#request-user-activation\" id=\"ref-for-request-user-activation\">user-activation</a> is <code>false</code>, return.</p>" |
99 | 99 | }, |
100 | 100 | { |
101 | | - "html": "<p>Let <var>header</var> be a <a data-link-type=\"dfn\" href=\"https://tools.ietf.org/html/draft-ietf-httpbis-header-structure#\" id=\"ref-for-something⑦\">Structured Header</a> whose value is a <a data-link-type=\"dfn\" href=\"https://tools.ietf.org/html/draft-ietf-httpbis-header-structure#section-3.7\" id=\"ref-for-section-3.7⑦\">token</a>.</p>" |
| 101 | + "html": "<p>Let <var>header</var> be a <a data-link-type=\"dfn\" href=\"https://www.rfc-editor.org/rfc/rfc9651.html#name-introduction\" id=\"ref-for-name-introduction⑦\">Structured Field</a> whose value is a <a data-link-type=\"dfn\" href=\"https://www.rfc-editor.org/rfc/rfc9651.html#name-tokens\" id=\"ref-for-name-tokens⑦\">token</a>.</p>" |
102 | 102 | }, |
103 | 103 | { |
104 | 104 | "html": "<p>Set <var>header</var>’s value to <code>true</code>.</p>" |
|
111 | 111 | { |
112 | 112 | "name": "append fetch metadata headers", |
113 | 113 | "href": "https://w3c.github.io/webappsec-fetch-metadata/#abstract-opdef-append-the-fetch-metadata-headers-for-a-request", |
114 | | - "html": "To <dfn data-dfn-type=\"abstract-op\" data-export=\"\" id=\"abstract-opdef-append-the-fetch-metadata-headers-for-a-request\">append the Fetch metadata headers for a request<a class=\"self-link\" href=\"https://w3c.github.io/webappsec-fetch-metadata/#abstract-opdef-append-the-fetch-metadata-headers-for-a-request\"></a></dfn>, given <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request\" id=\"ref-for-concept-request①⓪\">request</a> <var>r</var>:", |
| 114 | + "html": "To <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"abstract-op\" data-export=\"\" id=\"abstract-opdef-append-the-fetch-metadata-headers-for-a-request\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">append the Fetch metadata headers for a request</dfn>, given <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request\" id=\"ref-for-concept-request①⓪\">request</a> <var>r</var>:", |
115 | 115 | "rationale": ".algorithm", |
116 | 116 | "steps": [ |
117 | 117 | { |
|
0 commit comments