Commit 491f182e authored by Alex Cooper's avatar Alex Cooper Committed by Commit Bot

Add Feature for WebXrPermissionsAPI

Currently WebXr uses a custom consent flow. Due to changes in the spec,
and desired expansion to other platforms, WebXr needs to switch to using
the Permissions API instead. This change adds a flag to enable
development of switching the consent prompt out with calls to the
permissions api.  Note that while the spec is evolving to allow proper
querying by sites in the renderer, this flag is intended to only gate
switching the internals. (e.g. using the permissions API to prompt for
user consent to initiate a WebXr session).

Bug: 1033592
Change-Id: I0eec6308f6432cbff3c60bff3e949fe3b2205926
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1992267
Commit-Queue: Alexander Cooper <alcooper@chromium.org>
Commit-Queue: Alex Moshchuk <alexmos@chromium.org>
Auto-Submit: Alexander Cooper <alcooper@chromium.org>
Reviewed-by: default avatarAlex Moshchuk <alexmos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#729556}
parent f24efb58
......@@ -726,6 +726,8 @@ const base::Feature kWebXrHitTest{"WebXRHitTest",
// Enables access to experimental WebXR features.
const base::Feature kWebXrIncubations{"WebXRIncubations",
base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kWebXrPermissionsApi{"WebXrPermissionsApi",
base::FEATURE_DISABLED_BY_DEFAULT};
// Start streaming scripts on script preload.
const base::Feature kScriptStreamingOnPreload{"ScriptStreamingOnPreload",
......
......@@ -151,6 +151,7 @@ CONTENT_EXPORT extern const base::Feature kWebXr;
CONTENT_EXPORT extern const base::Feature kWebXrArModule;
CONTENT_EXPORT extern const base::Feature kWebXrHitTest;
CONTENT_EXPORT extern const base::Feature kWebXrIncubations;
CONTENT_EXPORT extern const base::Feature kWebXrPermissionsApi;
CONTENT_EXPORT extern const base::Feature kScriptStreamingOnPreload;
CONTENT_EXPORT extern const base::Feature kTrustedDOMTypes;
CONTENT_EXPORT extern const base::Feature kBrowserUseDisplayThreadPriority;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment