Skip to content

Commit a441899

Browse files
authored
Change CSPViolationReportBody to dictionary (#737)
Following the changes in w3c/reporting#284 all report bodies now need to be dictionaries, following the conclusion of w3c/reporting#216
1 parent 7690298 commit a441899

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

index.bs

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1632,20 +1632,18 @@ this algorithm returns normally if compilation is allowed, and throws a
16321632
<code>ReportingObserver</code>s</a>.
16331633

16341634
<pre class="idl">
1635-
[Exposed=Window]
1636-
interface CSPViolationReportBody : ReportBody {
1637-
[Default] object toJSON();
1638-
readonly attribute USVString documentURL;
1639-
readonly attribute USVString? referrer;
1640-
readonly attribute USVString? blockedURL;
1641-
readonly attribute DOMString effectiveDirective;
1642-
readonly attribute DOMString originalPolicy;
1643-
readonly attribute USVString? sourceFile;
1644-
readonly attribute DOMString? sample;
1645-
readonly attribute SecurityPolicyViolationEventDisposition disposition;
1646-
readonly attribute unsigned short statusCode;
1647-
readonly attribute unsigned long? lineNumber;
1648-
readonly attribute unsigned long? columnNumber;
1635+
dictionary CSPViolationReportBody : ReportBody {
1636+
USVString documentURL;
1637+
USVString? referrer;
1638+
USVString? blockedURL;
1639+
DOMString effectiveDirective;
1640+
DOMString originalPolicy;
1641+
USVString? sourceFile;
1642+
DOMString? sample;
1643+
SecurityPolicyViolationEventDisposition disposition;
1644+
unsigned short statusCode;
1645+
unsigned long? lineNumber;
1646+
unsigned long? columnNumber;
16491647
};
16501648
</pre>
16511649

0 commit comments

Comments
 (0)