commit | f482e77e59ef0a506e745182ca6843080cd8d1ea | [log] [tgz] |
---|---|---|
author | Ian Clelland <iclelland@chromium.org> | Wed Nov 14 16:42:47 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Nov 14 16:42:47 2018 |
tree | 2f8664c4cd534c21a5f32299ee52342ddba2750b | |
parent | ad793ba03b073e47e865aa2625c9bd12118d6e77 [diff] |
Add report-only mode to Feature Policy This change adds a "report-only" policy to each security context, which is local to that context (not replicated across processes) and is used to determine whether a report should be sent even if a feature is enabled, when the feature is used. Reports are now augmented with a "disposition" field, which is either "enforce", if the feature usage was actually blocked, or "report", if it was not. Feature policy directives are placed in the report-only policy if the feature name is suffixed with "-report-only", otherwise, they affect the regular (enforcing) policy. Explainer at https://github.com/WICG/feature-policy/blob/master/reporting.md Existing tests are updated, and new tests for report-only mode are added to ensure that reports are sent even when the feature is used successfully. Bug: 904878 Change-Id: I27bc42729c5ab5560160f3d993431e606a8a3a47 Reviewed-on: https://chromium-review.googlesource.com/c/1178811 Commit-Queue: Ian Clelland <iclelland@chromium.org> Reviewed-by: Ken Buchanan <kenrb@chromium.org> Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Cr-Commit-Position: refs/heads/master@{#608004}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .