[wpt-sync] Sync PR 34099 - Window Placement: Prototype Fullscreen Capability Delegation - Part 2
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox102 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 34099 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/34099
Details from upstream follow.
Mike Wasserman <msw@chromium.org> wrote:
Window Placement: Prototype Fullscreen Capability Delegation - Part 2
This completes the prototype started in https://crrev.com/c/3575071
Support Fullscreen Capability Delegation when a flag is enabled:
--enable-blink-features=CapabilityDelegationFullscreenRequest
Frames can delegate via messaging another frame on activation:
- w.postMessage("m", { targetOrigin: "*", delegate: "fullscreen" });
Another frame can use the delegated capability on message receipt:- window.onmessage = () => { e.requestFullscreen(); }
Activate a browser-side FullscreenRequestToken in:
- RFHI::PostMessageEvent for RemoteFrameHost's RouteMessageEvent
- new RFHI::LocalMessageNotification for LocalFrameHost local messages
Focus windows using delegation to request fullscreen, so:
- user can press [Esc] to exit fullscreen
- another focused window doesn't z-order above/below fullscreen
Add automated tests supporting feature flag and local/remote usage
Bug: 1293083
Test: automated; Fullscreen Capability Delegation WAI with flag enabled
Change-Id: Ie46e627cd8df033016f16afbfda4075da81517b2
Reviewed-on: https://chromium-review.googlesource.com/3642842
WPT-Export-Revision: 5d69b051a0debc07d5557cce3595c1de12bb75b4
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=db192a08e218a98a14f12fdcc9d3972e9cd09b2e
Assignee | ||
Comment 2•2 years ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 4 subtests
Status Summary
Firefox
OK
: 1
PASS
: 3
FAIL
: 1
Chrome
OK
: 1
PASS
: 3
FAIL
: 1
Safari
TIMEOUT
: 2
NOTRUN
: 3
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /fullscreen/api/delegate-request.https.sub.tentative.html [wpt.fyi]
- Fullscreen-request from a subframe succeeds with delegation when the top frame has user activation:
FAIL
(Chrome:FAIL
, Safari:NOTRUN
)
- Fullscreen-request from a subframe succeeds with delegation when the top frame has user activation:
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/04733879904d [wpt PR 34099] - Window Placement: Prototype Fullscreen Capability Delegation - Part 2, a=testonly
Comment 4•2 years ago
|
||
bugherder |
Description
•