Closed Bug 1814902 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 38347 - Reject getDisplayMedia calls without user activation

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox111 fixed)

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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

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

François Beaufort <beaufort.francois@gmail.com> wrote:

Reject getDisplayMedia calls without user activation

This CL makes sure getDisplayMedia() returned promise reject with
InvalidStateError when called without user activation. This is now gated
by an experimental blink feature as it was revered several times before.

Note that speculation rules tests are updated as well[1].

[1] https://github.com/WICG/nav-speculation/issues/225

Intent to remove: https://groups.google.com/a/chromium.org/g/blink-dev/c/YGmuAVOqftI

Bug: 1198918
Change-Id: I9517012e76478b108d74bff432b71095ac7ba4d2

Reviewed-on: https://chromium-review.googlesource.com/4219093
WPT-Export-Revision: 7f0b79c8316dd853dc0cf1cdad588c10ae9475f9

Attached file Notable wpt changes
# CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 88 tests and 1 subtests

## Status Summary

### Firefox
`OK`     : 52[Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-32-2004-qr-debug, Gecko-windows10-32-2004-qr-opt, Gecko-windows10-64-2004-qr-debug, Gecko-windows10-64-2004-qr-opt] 53[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview] 58[GitHub]
`PASS`   : 48[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview] 51[Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-32-2004-qr-debug, Gecko-windows10-32-2004-qr-opt, Gecko-windows10-64-2004-qr-debug, Gecko-windows10-64-2004-qr-opt] 58[GitHub]
`FAIL`   : 487[Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-32-2004-qr-debug, Gecko-windows10-32-2004-qr-opt, Gecko-windows10-64-2004-qr-debug, Gecko-windows10-64-2004-qr-opt] 491[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview] 518[GitHub]
`TIMEOUT`: 41[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview] 42[Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-32-2004-qr-debug, Gecko-windows10-32-2004-qr-opt, Gecko-windows10-64-2004-qr-debug, Gecko-windows10-64-2004-qr-opt] 82[GitHub]
`ERROR`  : 1[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview] 2[Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-32-2004-qr-debug, Gecko-windows10-32-2004-qr-opt, Gecko-windows10-64-2004-qr-debug, Gecko-windows10-64-2004-qr-opt] 6[GitHub]
`NOTRUN` : 1[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-32-2004-qr-debug, Gecko-windows10-32-2004-qr-opt, Gecko-windows10-64-2004-qr-debug, Gecko-windows10-64-2004-qr-opt] 17[GitHub]

### Chrome
`OK`     : 70
`PASS`   : 232
`CRASH`  : 5
`FAIL`   : 389
`TIMEOUT`: 26
`ERROR`  : 5
`NOTRUN` : 17

### Safari
`OK`     : 58
`PASS`   : 65
`FAIL`   : 511
`TIMEOUT`: 82
`ERROR`  : 6
`NOTRUN` : 17

## Links
[Gecko CI (Treeherder)](https://treeherder.mozilla.org/#/jobs?repo=try&revision=9860d6deedde37d14bd7811af23e5d1212a76658)
[GitHub PR Head](https://wpt.fyi/results/?sha=a9674110a7b6c0d60d4b74f4230b1444e79b9aa2&label=pr_head)
[GitHub PR Base](https://wpt.fyi/results/?sha=a9674110a7b6c0d60d4b74f4230b1444e79b9aa2&label=pr_base)

## Details

### Firefox-only Failures
* [/permissions-policy/payment-allowed-by-permissions-policy-attribute-redirect-on-load.https.sub.html](https://wpt.live/permissions-policy/payment-allowed-by-permissions-policy-attribute-redirect-on-load.https.sub.html) [[wpt.fyi](https://wpt.fyi/results/permissions-policy/payment-allowed-by-permissions-policy-attribute-redirect-on-load.https.sub.html)]
  * permissions policy allow="payment" allows same-origin navigation in an iframe.: `FAIL`
  * permissions policy allow="payment" allowpaymentrequest=true allows same-origin navigation in an iframe.: `FAIL`
* [/permissions-policy/payment-allowed-by-permissions-policy-attribute.https.sub.html](https://wpt.live/permissions-policy/payment-allowed-by-permissions-policy-attribute.https.sub.html) [[wpt.fyi](https://wpt.fyi/results/permissions-policy/payment-allowed-by-permissions-policy-attribute.https.sub.html)]
  * permissions policy "payment" can be enabled in same-origin iframe using allow="payment" attribute: `FAIL`
* [/permissions-policy/payment-allowed-by-permissions-policy.https.sub.html](https://wpt.live/permissions-policy/payment-allowed-by-permissions-policy.https.sub.html) [[wpt.fyi](https://wpt.fyi/results/permissions-policy/payment-allowed-by-permissions-policy.https.sub.html)]
  * permissions policy header "payment=*" allows the top-level document.: `FAIL`
  * permissions policy header "payment=*" allows same-origin iframes.: `FAIL`
* [/permissions-policy/payment-default-permissions-policy.https.sub.html](https://wpt.live/permissions-policy/payment-default-permissions-policy.https.sub.html) [[wpt.fyi](https://wpt.fyi/results/permissions-policy/payment-default-permissions-policy.https.sub.html)]
  * Default "payment" permissions policy allows the top-level document.: `FAIL`
  * Default "payment" permissions policy allows same-origin iframes.: `FAIL`
  * Default "payment" permissions policy allowpaymentrequest=true allows same-origin iframes.: `FAIL`
* [/permissions-policy/picture-in-picture-allowed-by-permissions-policy-attribute-redirect-on-load.https.sub.html](https://wpt.live/permissions-policy/picture-in-picture-allowed-by-permissions-policy-attribute-redirect-on-load.https.sub.html) [[wpt.fyi](https://wpt.fyi/results/permissions-policy/picture-in-picture-allowed-by-permissions-policy-attribute-redirect-on-load.https.sub.html)]
  * permissions policy allow="picture-in-picture" disallows cross-origin navigation in an iframe.: `FAIL`
* [/permissions-policy/picture-in-picture-default-permissions-policy.https.sub.html](https://wpt.live/permissions-policy/picture-in-picture-default-permissions-policy.https.sub.html) [[wpt.fyi](https://wpt.fyi/results/permissions-policy/picture-in-picture-default-permissions-policy.https.sub.html)]
  * Default "picture-in-picture" permissions policy [*] allows cross-origin iframes.: `FAIL`
* [/permissions-policy/picture-in-picture-disabled-by-permissions-policy.https.sub.html](https://wpt.live/permissions-policy/picture-in-picture-disabled-by-permissions-policy.https.sub.html) [[wpt.fyi](https://wpt.fyi/results/permissions-policy/picture-in-picture-disabled-by-permissions-policy.https.sub.html)]
  * permissions policy header: picture-in-picture "none" disallows the top-level document.: `FAIL`
  * permissions policy header: picture-in-picture "none" disallows same-origin iframes.: `FAIL`
  * permissions policy header: picture-in-picture "none" disallows cross-origin iframes.: `FAIL`
* [/screen-wake-lock/wakelock-disabled-by-permissions-policy.https.html](https://wpt.live/screen-wake-lock/wakelock-disabled-by-permissions-policy.https.html) [[wpt.fyi](https://wpt.fyi/results/screen-wake-lock/wakelock-disabled-by-permissions-policy.https.html)]
  * Permissions-Policy header "screen-wake-lock=()" disallows the top-level document.: `FAIL`

(See attachment for full changes)
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0eea99739e46
[wpt PR 38347] - Reject getDisplayMedia calls without user activation, a=testonly
https://hg.mozilla.org/integration/autoland/rev/ba3f8d35efec
[wpt PR 38347] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: