Reporting API should send a *collection* of reports to endpoint
Categories
(Core :: DOM: Security, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox74 | --- | fixed |
People
(Reporter: arenevier, Assigned: arenevier)
Details
(Whiteboard: [domsecurity-active])
Attachments
(1 file, 1 obsolete file)
When a feature violation is reported, a request is sent to the endpoint with the following json:
{
"age": 1002,
"type": "feature-policy-violation",
"url": "http://localhost/reporting.php",
"user_agent":+"Mozilla/5.0+(X11;+Linux+x86_64;+rv:74.0)+Gecko/20100101+Firefox/74.0",
"body": {
"featureId": "geolocation",
"sourceFile": "http://localhost/reporting.php",
"lineNumber": 8,
"columnNumber": 22,
"disposition":+"enforce"
}
}
But according to Reporting API specification, a collection of report should be sent. Which means that this report, even when submitted individually, should be enclosed within []
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
In order to respect the specification, we need to send the reports as a collection.
This gives us the opportunity to group reports by endpoints and principal. That
way, if we have multiple reports to send to the same endpoint, we can do it
with only one request.
Assignee | ||
Comment 2•4 years ago
|
||
In order to respect the specification, we need to send the reports as a collection.
This gives us the opportunity to group reports by endpoints and principal. That
way, if we have multiple reports to send to the same endpoint, we can do it
with only one request.
Updated•4 years ago
|
Updated•4 years ago
|
Pushed by cbrindusan@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a8cf21968b97 Send reports to endpoint as a collection. r=baku
Comment 4•4 years ago
|
||
Backed out changeset a8cf21968b97 (Bug 1608911) for build bustages at ReportDeliver.cpp.
https://hg.mozilla.org/integration/autoland/rev/63280d3b908378a587b7d189982497ba8a5b661f
Failure log:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=284912230&repo=autoland&lineNumber=40626
Assignee | ||
Comment 5•4 years ago
|
||
The bug was due to a typo inside a MOZ_ASSERT()
(which is why I didn't catch it on my build).
I have pushed a new patch.
Pushed by btara@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/31fb9b1aa4b1 Send reports to endpoint as a collection. r=baku
Comment 7•4 years ago
|
||
bugherder |
Description
•