Closed Bug 1769856 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 34099 - Window Placement: Prototype Fullscreen Capability Delegation - Part 2

Categories

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

task

Tracking

()

RESOLVED FIXED
102 Branch
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

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

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

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
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.