Report Integrity-Policy violations using the Reporting API
Categories
(Core :: DOM: Security, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox149 | --- | fixed |
People
(Reporter: tschuster, Assigned: tschuster)
References
(Blocks 2 open bugs, )
Details
(Keywords: dev-doc-complete)
Attachments
(3 files)
When we initially landed the Integrity-Policy we weren't able to add violation reports because the Reporting API was/is disabled by default. It seems like we might soon have the Reporting API enabled by default so we should also use it for the Integrity-Policy.
| Assignee | ||
Updated•3 months ago
|
| Assignee | ||
Comment 1•3 months ago
|
||
| Assignee | ||
Comment 2•3 months ago
|
||
Updated•3 months ago
|
Updated•3 months ago
|
| Assignee | ||
Comment 3•3 months ago
|
||
| Assignee | ||
Updated•3 months ago
|
Comment 5•3 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/2a9f84cf88ae
https://hg.mozilla.org/mozilla-central/rev/455b002c893d
https://hg.mozilla.org/mozilla-central/rev/785785cec022
Updated•2 months ago
|
Comment 6•2 months ago
|
||
FF149 MDN docs work for this can be tracked in https://github.com/mdn/content/issues/43199
FWIW Tom, the implementation here doesn't quite match the spec: https://w3c.github.io/webappsec-subresource-integrity/#report-violations
The code defines the report body as a ReportBody derived interface with toJson() while the spec intent is that this is a dictionary. You're probably aware and I am just missing something. The request for info is so you see this, in case it matters.
| Assignee | ||
Comment 7•2 months ago
|
||
(In reply to Hamish Willee from comment #6)
FF149 MDN docs work for this can be tracked in https://github.com/mdn/content/issues/43199
FWIW Tom, the implementation here doesn't quite match the spec: https://w3c.github.io/webappsec-subresource-integrity/#report-violations
The code defines the report body as aReportBodyderived interface withtoJson()while the spec intent is that this is a dictionary. You're probably aware and I am just missing something. The request for info is so you see this, in case it matters.
Thank Hamish for working on this. We are are aware of the dictionary discrepancy: bug 1976189 comment 2.
Comment 8•2 months ago
|
||
Thanks! In no way on you but this is so frustrating. I'm currently moving all the MDN docs to dictionaries on the assumption that this is happen - at suggestion of compat team. We're very much in an intermediate state ... and have been for over a year.
Updated•1 month ago
|
Description
•