2014-08-04 23:51:54 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This dictionary holds the parameters used to send
|
|
|
|
* CSP reports in JSON format.
|
|
|
|
*/
|
|
|
|
|
|
|
|
dictionary CSPReportProperties {
|
|
|
|
DOMString document-uri = "";
|
|
|
|
DOMString referrer = "";
|
|
|
|
DOMString blocked-uri = "";
|
|
|
|
DOMString violated-directive = "";
|
|
|
|
DOMString original-policy= "";
|
|
|
|
DOMString source-file;
|
|
|
|
DOMString script-sample;
|
|
|
|
long line-number;
|
2018-07-05 09:21:04 +03:00
|
|
|
long column-number;
|
2014-08-04 23:51:54 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
dictionary CSPReport {
|
2018-09-26 01:09:30 +03:00
|
|
|
// We always want to have a "csp-report" property, so just pre-initialize it
|
|
|
|
// to an empty dictionary..
|
2019-07-03 10:52:35 +03:00
|
|
|
CSPReportProperties csp-report = {};
|
2014-08-04 23:51:54 +04:00
|
|
|
};
|