From 73425318ceb24049f585212ca0c484e3de3416b1 Mon Sep 17 00:00:00 2001 From: autofoolip Date: Fri, 6 Nov 2020 17:39:38 +0000 Subject: [PATCH] Bug 1675331 [wpt PR 26395] - Update interfaces/CSP.idl, a=testonly Automatic update from web-platform-tests Update interfaces/CSP.idl (#26395) Source: https://github.com/w3c/webref/blob/41c9dd7/ed/idl/CSP.idl Build: https://travis-ci.org/w3c/webref/builds/198293066 -- wpt-commits: 8719553b2dd8f0f39d38253ccac2ee9ab4d6c87b wpt-pr: 26395 --- testing/web-platform/tests/interfaces/CSP.idl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/testing/web-platform/tests/interfaces/CSP.idl b/testing/web-platform/tests/interfaces/CSP.idl index 43ec3e4e87d1..fd08a33499b1 100644 --- a/testing/web-platform/tests/interfaces/CSP.idl +++ b/testing/web-platform/tests/interfaces/CSP.idl @@ -3,6 +3,7 @@ // (https://github.com/w3c/webref) // Source: Content Security Policy Level 3 (https://w3c.github.io/webappsec-csp/) +[Exposed=Window] interface CSPViolationReportBody : ReportBody { readonly attribute USVString documentURL; readonly attribute USVString? referrer; @@ -21,9 +22,9 @@ enum SecurityPolicyViolationEventDisposition { "enforce", "report" }; -[Constructor(DOMString type, optional SecurityPolicyViolationEventInit eventInitDict), - Exposed=(Window,Worker)] +[Exposed=(Window,Worker)] interface SecurityPolicyViolationEvent : Event { + constructor(DOMString type, optional SecurityPolicyViolationEventInit eventInitDict = {}); readonly attribute USVString documentURL; readonly attribute USVString documentURI; // historical alias of documentURL readonly attribute USVString referrer;