Skip to content

Commit 20ab675

Browse files
authored
Do not use request's window concept (#565)
Per whatwg/fetch#1823, this concept is going away. Instead, use the request's client, which is equivalent for this spec's purposes.
1 parent b5dde2c commit 20ab675

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

index.bs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,16 +1313,19 @@ partial interface HTMLIFrameElement {
13131313
Given a [=policy-controlled feature|feature=] (|feature|) and a <a for="/">request</a> (|request|),
13141314
this algorithm returns <code>true</code> if the request should be allowed to
13151315
use |feature|, and <code>false</code> otherwise.
1316-
1. Set |window| to |request|’s <a for="request">window</a>.
1317-
1. If |window| is not a {{Window}}, return <code>false</code>.
1316+
1. Let |client| be |request|’s [=request/client=].
1317+
1. If |client| is null, return <code>false</code>.
1318+
1. If |client|'s [=environment settings object/global object=] is not a {{Window}}, return
1319+
<code>false</code>.
13181320
<div class="issue">Permissions Policy within non-Window contexts
13191321
({{WorkerGlobalScope}} or {{WorkletGlobalScope}}) is being figured out in
13201322
<a href="https://github.com/w3c/webappsec-permissions-policy/issues/207">issue
13211323
#207</a>. After that’s resolved, update this algorithm to allow fetches
13221324
initiated within these contexts to use policy-controlled features.
13231325
*Until* that’s resolved, disallow all policy-controlled features (e.g.,
13241326
sending Client Hints to third parties) in these contexts.</div>
1325-
1. Set |document| to |window|’s <a>associated `Document`</a>.
1327+
1. Set |document| to |client|’s [=environment settings object/global object=]’s
1328+
<a>associated `Document`</a>.
13261329
1. Let |origin| be |request|’s <a for="request">origin</a>.
13271330
1. Let |result| be the result of executing <a abstract-op>Is feature
13281331
enabled in document for origin?</a> on |feature|, |document|, and |origin|.

0 commit comments

Comments
 (0)