Open Bug 1620573 Opened 5 years ago Updated 10 months ago

Behind-a-flag Reporting API implementation is dated

Categories

(Core :: DOM: Core & HTML, task, P3)

task

Tracking

()

People

(Reporter: annevk, Unassigned)

References

(Depends on 1 open bug, Blocks 2 open bugs)

Details

(Whiteboard: [domsecurity-backlog2])

Since bug 1492036 https://w3c.github.io/reporting/ has changed quite a bit. Seems good to fix bug 1507280 as part of aligning this.

(There's also a question as to where this fits on the roadmap as only CSP can really use it at this point I think and that already has its own infrastructure.)

standards-positions: https://github.com/mozilla/standards-positions/issues/104.

Type: defect → task
Priority: -- → P3
Whiteboard: [domsecurity-backlog2]
Blocks: 1631237
Severity: normal → S3
Component: DOM: Security → DOM: Core & HTML

To provide more context here. We support the V0 version of Reporting API, and we need to implement the V1 version.

Here's an comparison between V0 and V1

Report-To: { group: "main-endpoint", "max_age": 86400, "endpoints": [ { "url": ... }, { "url": ... }] }, { group: "default-endpoint", "max_age": 86400, "endpoints": [ { "url": ... }, { "url": ... }] }

Document-Policy: ...; report-to main-endpoint

V1 works as

Reporting-Endpoints: end-point="https://reports.example/main"

Document-Policy: ...; report-to end-point
Depends on: 1860588

I think this issue on the spec is also quite relevant:
Clarifying behavior when both Reporting-Endpoints and Report-To headers are provided? #267

From my understanding, the current expectation for response headers is that only Report-To or Reporting-Endpoints will be present - not both, and that Reporting-Endpoints should be prioritized in the scenario where both are present. However, the current reporting API specification isn't very clear about this behavior. Could the document be updated to more explicitly define this behavior?

You need to log in before you can comment on or make changes to this bug.