Skip to content

Commit

Permalink
Only apply to Window
Browse files Browse the repository at this point in the history
  • Loading branch information
yoavweiss committed Dec 5, 2024
1 parent 18b1957 commit a36018f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1119,11 +1119,10 @@ spec:SRI; urlPrefix: https://w3c.github.io/webappsec-subresource-integrity
1. [=list/Append=] the result of [=applying algorithm to bytes=] on |response|'s
[=response/body=] and |algorithm| to |hash list|.
1. Let |hash| be the result of [=concatenating=] |hash list| with U+002D (-).
1. Let |document URL| be the empty [=string=].
1. Let |global| be the |request|'s [=request/client=]'s [=/global object=].
1. If |global| is a {{Window}}, set |document URL| to |global|'s [=document=]'s [=Document/URL=].
1. If |global| is not a {{Window}}, return.
1. Let |stripped document URL| to be the result of executing [[#strip-url-for-use-in-reports]]
on |document URL|.
on |global|'s [=document=]'s [=Document/URL=].
1. If |policy|'s [=directive set=] does not contain a [=directive=] named "report-to", return.
1. Let |report-to directive| be a [=directive=] named "report-to" from |policy|'s [=directive
set=].
Expand Down

0 comments on commit a36018f

Please sign in to comment.