ReportingAPI: List of reports - draft#43782
Conversation
|
|
||
| A list of documented report types and their corresponding report dictionary are given in the [`options.types`](/en-US/docs/Web/API/ReportingObserver/ReportingObserver#types) parameter passed to the `ReportingObserver()` constructor. | ||
|
|
||
| ##### XXXXX |
There was a problem hiding this comment.
[markdownlint] reported by reviewdog 🐶
error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h4; Actual: h5]
|
Preview URLs (1 page) Flaws (6) Found an unexpected or unresolvable flaw? Please report it here. URL:
|
|
@hamishwillee, as an FYI, I'm working on the Crash Reporting API docs right now. One thing I am confused about with the docs for the reporting APIs — the dictionary pages are titled Crash reports are not observed by reporting observers; they are just sent to the server endpoints directly when a crash occurs. This being the case, should I still call the corresponding dictionary page I'll get on with it anyway, and produce a draft to look at. |
@chrisdavidmills This has a long and still messy history. The original Reporting API defined Report and ReportBody interfaces, and implementations were supposed to derive from ReportBody. The spec changed a ciouple of years ago to make Report and ReportBody into dictonaries, and updated some of the derived report bodies to match. This is still all a mess where some have been migrated, some have not, and some don't derive from anything at all and therefore have no spec name. Following the suggestion of BCD we agreed to assume that we should document as though everything had migrated. So the short version is, we document reports as dictionaries. Following MDN practise we don't document intermediate dictionaries, we just document the top level dictionary. Hence the pattern you see were we document the whole derived report and assume nothing is derived. Make sense? |
Yes. You have done it as I would. The point of THIS PR is to list all the reports you might get, and also to track the missing ones. |
This is in progress work to provide a list of all reports and how they are accessed for reporting API.
Fixes #43688
This will have the parent grouping. Still working on the pages that it needs before this can go in though. This is all being tested still.
Document Policyto MDN mdn#394 and https://github.com/WICG/document-policy/blob/main/document-policy-explainer.mdReportingObserverreport typepermissions-policy-violationbrowser-compat-data#29500