Skip to content

Does immersive model presentation need a separate user-agent approval step? #166

Open

Description

@cabanier

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

  1. cabanier commented on Oct 14, 2026

    @cabanier
    MemberAuthor

    /tpac

  2. added
    TPAC
    on Oct 14, 2026
  3. removed
    TPAC
    on Oct 29, 2026
  4. cabanier commented on Oct 29, 2026

    @cabanier
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions