Change CSPViolationReportBody to dictionary (#737) · w3c/webappsec-csp@a441899
TimvdLippe
·
2025-06-22
·
via Recent Commits to webappsec-csp:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1632,20 +1632,18 @@ this algorithm returns normally if compilation is allowed, and throws a
|
1632 | 1632 | <code>ReportingObserver</code>s</a>. |
1633 | 1633 | |
1634 | 1634 | <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; |
1649 | 1647 | }; |
1650 | 1648 | </pre> |
1651 | 1649 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。