You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Does immersive model presentation need a separate user-agent approval step? #166
The proposed requestImmersive() algorithm checks availability and consumes transient user activation, then includes:
Obtain user-agent approval for the presentation. The user agent MAY ask the user for permission, use an existing permission decision, or decline the request.
Is a separate approval step needed in addition to availability and transient activation?
WebKit currently has a distinct approval stage: DocumentImmersive::beginImmersiveRequest() calls allowImmersiveElement(), which reaches the embedding application's shouldAllowImmersiveEnvironmentFromFrame callback. The host may refuse presentation even after the activation check. This callback does not, by itself, require a user-visible permission prompt.
Points to discuss:
Should the specification retain a separate user-agent or embedding-application policy gate, or fold refusal into the existing eligibility/presentation checks?
If retained, is this a browser/OS policy decision, a user permission, or both? A mandatory permission prompt is not currently required by the draft.
Is a named permission or Permissions Policy integration appropriate, given that this API MUST NOT create a WebXR session or expose tracking data?
How should approval denial be reported? The current draft uses AbortError, while missing user activation uses NotAllowedError.
The step is retained provisionally to reflect WebKit's separate approval path. Its necessity and semantics should be resolved before the API is finalized.
Activity
Define immersive model presentation APIs and native-scale rendering
cabanier commentedon Oct 14, 2026
/tpac
Define immersive model presentation APIs and native-scale rendering
Define immersive model presentation APIs and native-scale rendering
cabanier commentedon Oct 29, 2026
At TPAC, we decided that a gate may be needed but there is no need for a permission check.
The javascript API still needs to be fleshed out.