Skip to content

Change CSPViolationReportBody to dictionary #737

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 12 additions & 14 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1632,20 +1632,18 @@ this algorithm returns normally if compilation is allowed, and throws a
<code>ReportingObserver</code>s</a>.

<pre class="idl">
[Exposed=Window]
interface CSPViolationReportBody : ReportBody {
[Default] object toJSON();
readonly attribute USVString documentURL;
readonly attribute USVString? referrer;
readonly attribute USVString? blockedURL;
readonly attribute DOMString effectiveDirective;
readonly attribute DOMString originalPolicy;
readonly attribute USVString? sourceFile;
readonly attribute DOMString? sample;
readonly attribute SecurityPolicyViolationEventDisposition disposition;
readonly attribute unsigned short statusCode;
readonly attribute unsigned long? lineNumber;
readonly attribute unsigned long? columnNumber;
dictionary CSPViolationReportBody : ReportBody {
USVString documentURL;
USVString? referrer;
USVString? blockedURL;
DOMString effectiveDirective;
DOMString originalPolicy;
USVString? sourceFile;
DOMString? sample;
SecurityPolicyViolationEventDisposition disposition;
unsigned short statusCode;
unsigned long? lineNumber;
unsigned long? columnNumber;
};
</pre>

Expand Down