Backed out 2 changesets (bug 1908320) for causing wr failures on align-items-baseline...
[gecko.git] / dom / webidl / CSPReport.webidl
blobe8141ddfee73c5ff75637e38666199ea899161d5
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 /**
6   * This dictionary holds the parameters used to send
7   * CSP reports in JSON format.
8   *
9   * Based on https://w3c.github.io/webappsec-csp/#deprecated-serialize-violation
10   */
12 dictionary CSPReportProperties {
13   DOMString document-uri = "";
14   DOMString referrer = "";
15   DOMString blocked-uri = "";
16   DOMString effective-directive = "";
17   DOMString violated-directive = "";
18   DOMString original-policy= "";
19   SecurityPolicyViolationEventDisposition disposition = "report";
20   long status-code = 0;
22   DOMString source-file;
23   DOMString script-sample;
24   long line-number;
25   long column-number;
28 [GenerateToJSON]
29 dictionary CSPReport {
30   // We always want to have a "csp-report" property, so just pre-initialize it
31   // to an empty dictionary..
32   CSPReportProperties csp-report = {};