From 4fa50fb4652bcc237319d68cc7b4718adcbffe6a Mon Sep 17 00:00:00 2001 From: Saeid Eid Date: Wed, 21 Feb 2024 10:18:36 +0100 Subject: [PATCH 1/2] remove required attributes --- index.bs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/index.bs b/index.bs index b625b099f1..557615ada1 100644 --- a/index.bs +++ b/index.bs @@ -1599,18 +1599,18 @@ this algorithm returns normally if compilation is allowed, and throws a }; dictionary SecurityPolicyViolationEventInit : EventInit { - required USVString documentURI; - USVString referrer = ""; - USVString blockedURI = ""; - required DOMString violatedDirective; - required DOMString effectiveDirective; - required DOMString originalPolicy; - USVString sourceFile = ""; - DOMString sample = ""; - required SecurityPolicyViolationEventDisposition disposition; - required unsigned short statusCode; - unsigned long lineNumber = 0; - unsigned long columnNumber = 0; + USVString documentURI = ""; + USVString referrer = ""; + USVString blockedURI = ""; + DOMString violatedDirective = ""; + DOMString effectiveDirective = ""; + DOMString originalPolicy = ""; + USVString sourceFile = ""; + DOMString sample = ""; + SecurityPolicyViolationEventDisposition disposition = "enforce"; + unsigned short statusCode; + unsigned long lineNumber = 0; + unsigned long columnNumber = 0; }; From 2b349f7ee1c79c893aeb2b60698e5735199063f0 Mon Sep 17 00:00:00 2001 From: Saeid Eid Date: Wed, 21 Feb 2024 10:26:26 +0100 Subject: [PATCH 2/2] set statuscode to 0 by default --- index.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.bs b/index.bs index 557615ada1..4e61fe62c4 100644 --- a/index.bs +++ b/index.bs @@ -1608,7 +1608,7 @@ this algorithm returns normally if compilation is allowed, and throws a USVString sourceFile = ""; DOMString sample = ""; SecurityPolicyViolationEventDisposition disposition = "enforce"; - unsigned short statusCode; + unsigned short statusCode = 0; unsigned long lineNumber = 0; unsigned long columnNumber = 0; };