Backed out changeset 2a94e8bad21e (bug 1874716) for causing CXX related build bustage...
[gecko.git] / dom / webidl / SecurityPolicyViolationEvent.webidl
blob5578238347a2451b6dd6b9f9b6a6d7b5c7daa9c8
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
7   "enforce", "report"
8 };
10 [Exposed=Window]
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;
43     long           lineNumber = 0;
44     long           columnNumber = 0;