Contact emails
icle...@chromium.org, paul...@chromium.org
Explainer
Explainer: https://github.com/WICG/feature-policy/blob/master/reporting.md
Design doc/Spec
Spec: https://wicg.github.io/feature-policy/#reporting
It's worth noting that this spec defines how violations are to be reported, but abstains from defining what constitutes a "violation" of any policy. We intend to enable reporting for most policy-controlled features, but PRs will have to be sent for each feature's spec to declare that a particular use of the feature should be reported as a violation.
Summary
This will enable violations of feature policy within a page to be reported through the Reporting API.
Motivation
In order to minimize compatibility issues, policy-controlled features are usually designed to fail when disabled in the same way that they would when any other error occurred: "fullscreen" rejects its promise; "sync-xhr" throws a NetworkError; "geolocation" acts as though the user denied permission; etc. This means that most failure paths will already be handled by existing code, but makes it difficult for developers to reason about *why* a particular API call failed, and whether the policy was responsible.
Additionally, reporting allows developers to gather data "from the field", to catch issues occurring on users' browsers which may never appear during development.
Finally, the "report only" mode (explainer only) will enable developers to try out policies and gather data on potential problems before enabling the policies in an enforcing mode. This should make adoption of feature policy much easier for much of the development community.
Risks
Interoperability and Compatibility
If other browsers do not choose to implement this, it may still be useful, as it can provide feedback to developers from Chrome users. The feature could be removed, though, and developers could fall back to in-band error detection and handling. (They would stop getting the out-of-band reports, and would have to notice that and change their code, though.) The feature policy JS API, once shipped, would make that an easier task.
Edge: No signals
Firefox: No signals
Safari: No signals
Web developers: Positive support; many developers have suggested that reporting is critical to adoption of feature policy for their sites. See comments on https://github.com/WICG/feature-policy/issues/142, and https://twitter.com/ChromiumDev/status/1014185185515012097, for instance.
Ergonomics
Are there any other platform APIs this feature will frequently be used in tandem with? Yes, by definition, this needs to be used in conjunction with Feature Policy, Reporting API, *and* the actual feature that developers are intending to control. This should be the natural intersection of those three, though.
Activation
This feature will help developers start to take advantage of feature policy. This reporting is no more difficult to use than the Reporting API generally.
Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
Yes: This will be available on all platforms which support the Reporting API.
Link to entry on the feature dashboard
https://www.chromestatus.com/feature/6294138899136512
Requesting approval to ship?
No
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK_TSXKWC1sHJZ%3D2Rq-Yd9yO-%3DQbTJ8yhs5PWfw44fu1rOC6tw%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.