Skip to content

Commit

Permalink
Fix reference to global's document
Browse files Browse the repository at this point in the history
  • Loading branch information
antosart committed Jan 23, 2025
1 parent affe7a7 commit d8787aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ spec:html
text: fallback base url
text: duplicate-attribute
text: parse error; for: /
text: associated document
type: element
text: a
text: link
Expand Down Expand Up @@ -825,7 +826,7 @@ spec:SRI; urlPrefix: https://w3c.github.io/webappsec-subresource-integrity
origin to avoid unintentional leakage.

3. If |global| is a {{Window}} object, set |violation|'s
<a for="violation">referrer</a> to |global|'s {{Window/document}}'s
<a for="violation">referrer</a> to |global|'s [=associated document|document=]'s
{{Document/referrer}}.

4. Set |violation|'s <a for="violation">status</a> to the HTTP status code
Expand Down Expand Up @@ -1123,7 +1124,7 @@ spec:SRI; urlPrefix: https://w3c.github.io/webappsec-subresource-integrity
1. Let |global| be the |request|'s [=request/client=]'s [=/global object=].
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 |global|'s [=document=]'s [=Document/URL=].
on |global|'s [=associated document|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 d8787aa

Please sign in to comment.