Automatic Fullscreen: Prototype Permissions API query support
Add navigator.permissions.query support for a new descriptor:
{name:'fullscreen', allowWithoutGesture:true}
Gate on RunTimeEnabledFeature AutomaticFullscreenPermissionsQuery.
Enhances feature detection and debuggability, per guidance:
https://groups.google.com/a/chromium.org/g/blink-dev/c/WOch5LPq9RY
Yield TypeError
for allowWithoutGesture:false, like unknown names.
Descriptor supports potential future fullscreen permission iteration.
http://doc/1ojUXRUcciyjxAgXOuTZoYREzI4Xp_dUd9NiFlYJxMew
Associate permission with fullscreen
permissions policy feature.
(yield 'denied' for frames without fullscreen
permissions policy)
Add interactive_ui_tests, tentative WPT, and inspector-protocol tests.
Refine supporting test functionality.
https://chromestatus.com/feature/6218822004768768
https://github.com/explainers-by-googlers/html-fullscreen-without-a-gesture
http://go/automatic-fullscreen-content-setting
Bug: 40941384
Test: Automated; Permissions API query WAI with flag enabled.
Change-Id: If9adac187ef712a9064855055953d3882305bf05
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5583182
Commit-Queue: Mike Wasserman msw@chromium.org
Reviewed-by: Elias Klim elklm@chromium.org
Reviewed-by: Mike West mkwst@chromium.org
Reviewed-by: Andrey Kosyakov caseq@chromium.org
Cr-Commit-Position: refs/heads/main@{#1317128}