[wpt-sync] Sync PR 43133 - Add user gesture checks to showPicker and fullscreen invoke actions
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox122 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 43133 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/43133
Details from upstream follow.
Luke Warlow <luke@warlow.dev> wrote:
Add user gesture checks to showPicker and fullscreen invoke actions
These were originally absent due to a faulty assumption.
If invokers only worked with trusted input then these checks
wouldn't be needed, but invokers also work with synthetic events.As currently specced showPicker needs a user gesture check regardless.
Fullscreen actions aren't currently specced but adding gesture checks
matches the JS API equivalents, and removes a bypass for mitigations.Bug: 1490919
Change-Id: I0b27e7110fc09bd4c8746d8bdddf200360640be9
Reviewed-on: https://chromium-review.googlesource.com/5019385
WPT-Export-Revision: 5868096d6d2cdd8fddfdb3b05d17d455987cc367
| Assignee | ||
Comment 1•2 years ago
|
||
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 2•2 years ago
|
||
| Assignee | ||
Comment 3•2 years ago
|
||
| Assignee | ||
Comment 4•2 years ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 12 subtests
Status Summary
Firefox
OK : 1
PASS: 7
FAIL: 5
Chrome
OK : 1
PASS: 12
Safari
OK : 1
PASS: 7
FAIL: 5
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /html/semantics/invokers/invoketarget-fullscreen-behavior.tentative.html [wpt.fyi]
- invoking div with toggleFullscreen action makes div fullscreen:
FAIL(Chrome:PASS, Safari:FAIL) - invoking fullscreen div with toggleFullscreen action exits fullscreen:
FAIL(Chrome:PASS, Safari:FAIL) - invoking fullscreen div with toggleFullscreen (case-insensitive) action exits fullscreen:
FAIL(Chrome:PASS, Safari:FAIL) - invoking div with requestFullscreen action makes div fullscreen:
FAIL(Chrome:PASS, Safari:FAIL) - invoking fullscreen div with exitFullscreen action exits fullscreen:
FAIL(Chrome:PASS, Safari:FAIL)
- invoking div with toggleFullscreen action makes div fullscreen:
Comment 7•2 years ago
|
||
| bugherder | ||
Description
•