Reporting API - Dictionary reports not Report.body objects#43195
Open
hamishwillee wants to merge 12 commits intomdn:mainfrom
Open
Reporting API - Dictionary reports not Report.body objects#43195hamishwillee wants to merge 12 commits intomdn:mainfrom
hamishwillee wants to merge 12 commits intomdn:mainfrom
Conversation
Contributor
6 tasks
files/en-us/web/api/reportingobserver/reportingobserver/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/reportingobserver/reportingobserver/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/reportingobserver/reportingobserver/index.md
Outdated
Show resolved
Hide resolved
This was referenced Mar 2, 2026
6712f41 to
d3f89bc
Compare
hamishwillee
commented
Mar 2, 2026
| ### Reporting deprecated features | ||
|
|
||
| In our [deprecation_report.html](https://mdn.github.io/dom-examples/reporting-api/deprecation_report.html) example, we create a simple reporting observer to observe usage of deprecated features on our web page: | ||
| This example shows how to observe `"deprecation"` reports within a page that triggers them using a {{domxref("ReportingObserver")}}. |
Collaborator
Author
There was a problem hiding this comment.
Note, new example is much easier to trigger and can be done inline.
Contributor
|
This pull request has merge conflicts that must be resolved before it can be merged. |
d3f89bc to
d665bde
Compare
Contributor
|
This pull request has merge conflicts that must be resolved before it can be merged. |
d665bde to
eaa4bb0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Reporting API changed such that ReportBody and Report are now dictionaries, and so (at least in theory) are all the derived report classes.
Note
In fact the specs and implementations are all over the place.
COEPViolationReportwhich defines an un-named report object that derives from nothing.Anyway, the intent of the spec is clear, and there is evidence of interest to migrate. BCD suggested I just document as dictionaries, and that is certainly cleaner than trying to keep the story in an intermediate state.
This updates all the report objects into dictionaries, removing all inheritence. This is inline with MDN ways-of-working when a dictionary object is needed.
Todo:
NOTE, where possible, have removed separate pages for property docs. Pointless in most of these (just repetetive). Have kept them where useful.
Note BCD links depend on mdn/browser-compat-data#27047
Related to