From 60ace4fc46ec356e2b216c181750e0bf50334bb4 Mon Sep 17 00:00:00 2001 From: Antonio Sartori Date: Mon, 9 Mar 2026 14:45:10 +0100 Subject: [PATCH] Fix algorithms called with missing parameters --- index.bs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.bs b/index.bs index 3a902dcff1..4389f56581 100644 --- a/index.bs +++ b/index.bs @@ -1207,8 +1207,8 @@ spec:SRI; urlPrefix: https://w3c.github.io/webappsec-subresource-integrity 1. For each |directive| of |policy|: 1. Execute |directive|'s initialization - algorithm on |document|, and assert: its returned value is - "`Allowed`". + algorithm on |document| and |policy|, and assert: its returned + value is "`Allowed`".

Retrieve the CSP list of an |object| @@ -1324,7 +1324,7 @@ spec:SRI; urlPrefix: https://w3c.github.io/webappsec-subresource-integrity 2. If |directive|'s inline check returns "`Allowed`" when executed upon null, - "`navigation`" and |navigation request|'s current URL, + "`navigation`", |policy|, and |navigation request|'s current URL, skip to the next |directive|. 3. Otherwise, let |violation| be the result of executing @@ -1428,7 +1428,7 @@ spec:SRI; urlPrefix: https://w3c.github.io/webappsec-subresource-integrity 1. For each |directive| of |policy|: 1. Execute |directive|'s initialization algorithm on - |global|. If its returned value is "`Blocked`", then set |result| to + |global| and |policy|. If its returned value is "`Blocked`", then set |result| to "`Blocked`". 3. Return |result|. @@ -1452,7 +1452,7 @@ spec:SRI; urlPrefix: https://w3c.github.io/webappsec-subresource-integrity 2. For each |policy| of |global|'s [=global object/CSP list=]: 1. For each |directive| of |policy|: 1. If |directive|'s webrtc pre-connect check - returns "`Allowed`", [=iteration/continue=]. + returns "`Allowed`" when executed upon |policy|, [=iteration/continue=]. 2. Otherwise, let |violation| be the result of executing [[#create-violation-for-global]] on |global|, |policy|, and