1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 enum SecurityPolicyViolationEventDisposition
11 interface SecurityPolicyViolationEvent : Event
13 constructor(DOMString type,
14 optional SecurityPolicyViolationEventInit eventInitDict = {});
16 readonly attribute DOMString documentURI;
17 readonly attribute DOMString referrer;
18 readonly attribute DOMString blockedURI;
19 readonly attribute DOMString violatedDirective;
20 readonly attribute DOMString effectiveDirective;
21 readonly attribute DOMString originalPolicy;
22 readonly attribute DOMString sourceFile;
23 readonly attribute DOMString sample;
24 readonly attribute SecurityPolicyViolationEventDisposition disposition;
25 readonly attribute unsigned short statusCode;
26 readonly attribute long lineNumber;
27 readonly attribute long columnNumber;
30 [GenerateInitFromJSON, GenerateToJSON]
31 dictionary SecurityPolicyViolationEventInit : EventInit
33 DOMString documentURI = "";
34 DOMString referrer = "";
35 DOMString blockedURI = "";
36 DOMString violatedDirective = "";
37 DOMString effectiveDirective = "";
38 DOMString originalPolicy = "";
39 DOMString sourceFile = "";
40 DOMString sample = "";
41 SecurityPolicyViolationEventDisposition disposition = "report";
42 unsigned short statusCode = 0;
44 long columnNumber = 0;