@@ -87,7 +87,7 @@ A top-level navigation from `https://example.com` to `https://example.com/` caus
87
87
on an in-page link would result in a request containing the following HTTP request header:
88
88
89
89
```
90
- Sec-Metadata: cause="user-activated", destination="document", site="same-origin", target="top-level"
90
+ Sec-Metadata: cause="user-activated", destination="document", site="same-origin"
91
91
```
92
92
93
93
Framework {#framework}
@@ -147,7 +147,10 @@ All requests will contain a dictionary member whose key is
147
147
Valid {{Sec-Metadata/destination}} values include all valid [=request=] [=request/destination=]
148
148
values (the empty string, "`audio`", "`audioworklet`", "`document`", "`embed`", "`font`",
149
149
"`image`", "`manifest`", "`object`", "`paintworklet`", "`report`", "`script`", "`serviceworker`",
150
- "`sharedworker`", "`style`", "`track`", "`video`", "`worker`", or "`xslt`").
150
+ "`sharedworker`", "`style`", "`track`", "`video`", "`worker`", "`xslt`", or "`nested-document`").
151
+
152
+ ISSUE(whatwg/fetch#755): Fetch currently does not define `nested-document`. It would be ideal if
153
+ we could add it, as the `target` member doesn't seem to be web-compatible.
151
154
152
155
<div algorithm="get destination">
153
156
To <dfn abstract-op local-lt="get destination">obtain the `destination` value</dfn> for a
@@ -195,34 +198,6 @@ Valid {{Sec-Metadata/site}} values are `same-origin`, `same-site`, and `cross-si
195
198
3. Return |site|.
196
199
</div>
197
200
198
- ### The `target` Member ### {#target-member}
199
-
200
- [=Navigation requests=] will contain a dictionary member whose key is
201
- "<dfn dict-member for="Sec-Metadata">`target`</dfn> ", and whose value is an
202
- <a for="structured header" grammar>`string`</a> representing the context in which the request
203
- will be used. Other kinds of requests will not contain a {{Sec-Metadata/target}} member.
204
-
205
- Valid {{Sec-Metadata/target}} values are `top-level`, `nested`, and `subresource`.
206
-
207
- <div algorithm="get target">
208
-
209
- To <dfn abstract-op local-lt="get target">obtain the `target` value</dfn> for a [=request=] (|r|),
210
- run the steps below:
211
-
212
- 1. If |r| is a [=navigation request=] :
213
-
214
- 1. If |r|'s [=request/reserved client=] is an [=environment=] whose [=target browsing context=]
215
- is a [=top-level browsing context=] , return `top-level`.
216
-
217
- 2. Assert: |r|'s [=request/reserved client=] is an [=environment=] whose [=target browsing
218
- context=] is a [=nested browsing context=] .
219
-
220
- 3. Return `nested`.
221
-
222
- 2. Return `null`.
223
-
224
- </div>
225
-
226
201
Integration With Fetch {#fetch-integration}
227
202
-------------------------------------------
228
203
@@ -239,9 +214,6 @@ To <dfn abstract-op>set the `Sec-Metadata` header for a request</dfn>, given a [
239
214
1. Append an item to |header| whose key is {{Sec-Metadata/cause}} , and whose value is the
240
215
result of [$get cause|obtaining the cause value$] for |r|.
241
216
242
- 2. Append an item to |header| whose key is {{Sec-Metadata/target}} , and whose value is the
243
- result of [$get target|obtaining the target value$] for |r|.
244
-
245
217
4. Append an item to |header| whose key is {{Sec-Metadata/destination}} , and whose value is the
246
218
result of [$get destination|obtaining the destination value$] for |r|.
247
219
0 commit comments