Closed Bug 1505878 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 13984 - Add report-only mode to Feature Policy

Categories

(Core :: DOM: Core & HTML, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 13984 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/13984
Details from upstream follow.

Ian Clelland <iclelland@chromium.org> wrote:
>  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: 867471
>  Change-Id: I27bc42729c5ab5560160f3d993431e606a8a3a47
>  
>  Reviewed-on: https://chromium-review.googlesource.com/1178811
>  WPT-Export-Revision: 3af1813bb06ae354e1cfc3dfc0982e9219baf6a5
Component: web-platform-tests → DOM
Product: Testing → Core
Ran 28 tests and 28 subtests
OK     : 20
FAIL   : 20
TIMEOUT: 2
ERROR  : 7
NOTRUN : 7

Existing tests that now have a worse result (e.g. they used to PASS and now FAIL):
/feature-policy/reporting/camera-reporting.https.html: ERROR
    Camera Report Format: NOTRUN
/feature-policy/reporting/document-write-reporting.html: ERROR
    Document-write Report Format: NOTRUN
/feature-policy/reporting/fullscreen-reporting.html
    Fullscreen Report Format: FAIL
/feature-policy/reporting/geolocation-reporting.https.html: ERROR
    Geolocation Report Format: NOTRUN
/feature-policy/reporting/microphone-reporting.https.html: ERROR
    Microphone Report Format: NOTRUN
/feature-policy/reporting/midi-reporting.html
    MIDI Report Format: FAIL
/feature-policy/reporting/payment-reporting.https.html: ERROR
    PaymentRequest Report Format: NOTRUN
/feature-policy/reporting/sync-xhr-reporting.html: ERROR
    Sync-xhr Report Format: NOTRUN
/feature-policy/reporting/vr-reporting.https.html
    VR Report Format: FAIL

New tests that have failures or other problems:
/feature-policy/reporting/camera-report-only.https.html
    Camera report only mode: FAIL
/feature-policy/reporting/document-write-report-only.html
    Document-write report only mode: FAIL
/feature-policy/reporting/encrypted-media-report-only.https.html
    Encrypted Media report only mode: FAIL
/feature-policy/reporting/fullscreen-report-only.html
    Fullscreen report only mode: FAIL
/feature-policy/reporting/generic-sensor-report-only.https.html
    Generic Sensor report only mode: FAIL
/feature-policy/reporting/geolocation-report-only.https.html: TIMEOUT
    Geolocation report only mode: TIMEOUT
/feature-policy/reporting/microphone-report-only.https.html
    Microphone report only mode: FAIL
/feature-policy/reporting/midi-report-only.html
    MIDI report only mode: FAIL
/feature-policy/reporting/payment-report-only.https.html
    PaymentRequest report only mode: FAIL
/feature-policy/reporting/picture-in-picture-report-only.html
    Picture-in-Picture Report Format: FAIL
/feature-policy/reporting/sync-xhr-report-only.html
    Sync-xhr report only mode: FAIL
/feature-policy/reporting/usb-report-only.https.html
    USB report only mode: FAIL
/feature-policy/reporting/vr-report-only.https.html
    VR report only mode: FAIL
/feature-policy/reporting/xr-report-only.https.html
    XR report only mode: FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/0475d6073c30
[wpt PR 13984] - Add report-only mode to Feature Policy, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/22f64d38d9c8
[wpt PR 13984] - Update wpt metadata, a=testonly
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/91431840cca3
[wpt PR 13984] - Add report-only mode to Feature Policy, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/5a02af0869cc
[wpt PR 13984] - Update wpt metadata, a=testonly
Flags: needinfo?(james)
https://hg.mozilla.org/mozilla-central/rev/91431840cca3
https://hg.mozilla.org/mozilla-central/rev/5a02af0869cc
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.