Skip to content

Commit a36018f

Browse files
committed
Only apply to Window
1 parent 18b1957 commit a36018f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

index.bs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,11 +1119,10 @@ spec:SRI; urlPrefix: https://w3c.github.io/webappsec-subresource-integrity
11191119
1. [=list/Append=] the result of [=applying algorithm to bytes=] on |response|'s
11201120
[=response/body=] and |algorithm| to |hash list|.
11211121
1. Let |hash| be the result of [=concatenating=] |hash list| with U+002D (-).
1122-
1. Let |document URL| be the empty [=string=].
11231122
1. Let |global| be the |request|'s [=request/client=]'s [=/global object=].
1124-
1. If |global| is a {{Window}}, set |document URL| to |global|'s [=document=]'s [=Document/URL=].
1123+
1. If |global| is not a {{Window}}, return.
11251124
1. Let |stripped document URL| to be the result of executing [[#strip-url-for-use-in-reports]]
1126-
on |document URL|.
1125+
on |global|'s [=document=]'s [=Document/URL=].
11271126
1. If |policy|'s [=directive set=] does not contain a [=directive=] named "report-to", return.
11281127
1. Let |report-to directive| be a [=directive=] named "report-to" from |policy|'s [=directive
11291128
set=].

0 commit comments

Comments
 (0)