Skip to content

Commit b1ebefd

Browse files
authored
Merge branch 'w3c:main' into patch-1
2 parents da9c63e + cf891fb commit b1ebefd

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

index.bs

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3873,10 +3873,30 @@ Content-Type: application/reports+json
38733873

38743874
3. <a for=set>For each</a> |directive| of |policy|:
38753875

3876-
1. Let |result| be the result of executing |directive|'s
3877-
<a for="directive">pre-request check</a> on |request| and |policy|.
3878-
3879-
2. If |result| is "`Allowed`", then return "`Does Not Violate`".
3876+
1. If |directive|'s <a for="directive">name</a> is not one of the following:
3877+
* `child-src`
3878+
* `connect-src`
3879+
* `font-src`
3880+
* `frame-src`
3881+
* `img-src`
3882+
* `manifest-src`
3883+
* `media-src`
3884+
* `object-src`
3885+
* `script-src`
3886+
* `script-src-elem`
3887+
* `style-src`
3888+
* `style-src-elem`
3889+
* `worker-src`
3890+
3891+
then continue.
3892+
3893+
1. Assert: |directive|'s <a for="directive">value</a> is a <a>source list</a>.
3894+
3895+
1. Let |result| be the result of executing [[#match-request-to-source-list]] on
3896+
|request|, |directive|'s <a for="directive">value</a>, and
3897+
|policy|.
3898+
3899+
1. If |result| is "`Allowed`", then return "`Does Not Violate`".
38803900

38813901
4. Return |defaultDirective|.
38823902

0 commit comments

Comments
 (0)