Closed Bug 1656629 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 24838 - Test restricted gamepad access in WPT

Categories

(Core :: DOM: Device Interfaces, task, P4)

task

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

James Hollyer <jameshollyer@chromium.org> wrote:

Test restricted gamepad access in WPT

This CL adds WPT for gamepad feature policy and secure context. It also
adds virtual tests suites and expected results as these restrictions are
currently behind a flag.

Bug:1098921
Change-Id: Icde27ddfbb6f95220d0b7455ae7c8da3fea11d82
Reviewed-on: https://chromium-review.googlesource.com/2333537
WPT-Export-Revision: 15129ca53387c2b2e7b3ff48d69b7ab0ba49ba6c

Component: web-platform-tests → DOM: Device Interfaces
Product: Testing → Core

CI Results

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

Total 3 tests and 1 subtests

Status Summary

Firefox

OK : 3
PASS: 2
FAIL: 3

Chrome

OK : 3
PASS: 2
FAIL: 3

Safari

OK : 3
PASS: 2
FAIL: 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/gamepad/gamepad-secure-context.html
When in a non-secure context, getGamepad() should throw an error.: FAIL (Chrome: FAIL, Safari: FAIL)
/gamepad/gamepad-default-feature-policy.https.sub.html
Feature-Policy allow="gamepad" disallows cross-origin by default.: FAIL (Chrome: FAIL, Safari: FAIL)
/gamepad/gamepad-supported-by-feature-policy.html
document.featurePolicy.features should advertise gamepad.: FAIL (Chrome: FAIL, Safari: FAIL)

Severity: -- → N/A
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/74005d1f3838 [wpt PR 24838] - Test restricted gamepad access in WPT, a=testonly https://hg.mozilla.org/integration/autoland/rev/1d33e33cf635 [wpt PR 24838] - Update wpt metadata, a=testonly
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/20085a598754 [wpt PR 24838] - Test restricted gamepad access in WPT, a=testonly https://hg.mozilla.org/integration/autoland/rev/cd95626aa9e9 [wpt PR 24838] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in before you can comment on or make changes to this bug.