From 010913a12ec4a969cafa7b48ee3a9f431dce90eb Mon Sep 17 00:00:00 2001 From: Antonio Sartori Date: Thu, 23 Jan 2025 11:46:19 +0100 Subject: [PATCH] Fix reference to global's document --- index.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.bs b/index.bs index 32b4dc62ff..a4ff2057e8 100644 --- a/index.bs +++ b/index.bs @@ -825,7 +825,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 - referrer to |global|'s {{Window/document}}'s + referrer to |global|'s [=associated document|document=]'s {{Document/referrer}}. 4. Set |violation|'s status to the HTTP status code @@ -1123,7 +1123,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=].