Andrea Marchesini
2018-11-13 09:33:30 UTC
*Summary*: Reporting API allows the page to receive notifications such as
the usage of deprecated APIs and FeaturePolicy violations.
I decided to implement this API, because it is required in the
web-platform-tests for FeaturePolicy.
Reporting API covers 2 different features:
a. reporting to the current page, via ReportingObserver
b. reporting to a remote server, known via 'report-to' HTTP header.
My implementation covers only the first aspect. However I also have patches
for the second part, not in review yet.
*Bug*: https://bugzilla.mozilla.org/show_bug.cgi?id=1492036
*Link to standard*: https://w3c.github.io/reporting/
*Platform coverage*: everywhere.
*Estimated or target release*: unknown yet.
*Preference behind which this will be implemented*: dom.reporting.enabled
*Is this feature enabled by default in sandboxed iframes?* yes. The reports
are per contexts. (but not for workers or worklets yet. See
https://github.com/w3c/reporting/issues/131
*DevTools bug*: no supports for devtools. I don't think we need to do
anything for devtools.
*Do other browser engines implement this?*
Chrome shipped it in 69:
https://www.chromestatus.com/feature/4672626140119040
No other browsers.
*web-platform-tests*:
https://wpt.fyi/results/feature-policy/reporting?aligned&label=stable
https://wpt.fyi/results/reporting?aligned&label=stable
the usage of deprecated APIs and FeaturePolicy violations.
I decided to implement this API, because it is required in the
web-platform-tests for FeaturePolicy.
Reporting API covers 2 different features:
a. reporting to the current page, via ReportingObserver
b. reporting to a remote server, known via 'report-to' HTTP header.
My implementation covers only the first aspect. However I also have patches
for the second part, not in review yet.
*Bug*: https://bugzilla.mozilla.org/show_bug.cgi?id=1492036
*Link to standard*: https://w3c.github.io/reporting/
*Platform coverage*: everywhere.
*Estimated or target release*: unknown yet.
*Preference behind which this will be implemented*: dom.reporting.enabled
*Is this feature enabled by default in sandboxed iframes?* yes. The reports
are per contexts. (but not for workers or worklets yet. See
https://github.com/w3c/reporting/issues/131
*DevTools bug*: no supports for devtools. I don't think we need to do
anything for devtools.
*Do other browser engines implement this?*
Chrome shipped it in 69:
https://www.chromestatus.com/feature/4672626140119040
No other browsers.
*web-platform-tests*:
https://wpt.fyi/results/feature-policy/reporting?aligned&label=stable
https://wpt.fyi/results/reporting?aligned&label=stable