Skip to content

What happens if you don't attach a .then() to a hit-test promise until much later #35

@lincolnfrog

Description

@lincolnfrog

A developer could potentially do something like this:

var promise = xrSession.requestHitTest(...);
window.setTimeout(() => { promise.then(...); }, 99999);

What happens here? The result is totally invalid at the point when it resolves. Can the promise be invalidated after the RAF for which it is valid is issued? This gets especially dangerous if we add the XRFrame object to the promise resolution of hit-test, as that frame will be potentially invalid at the late-attached "then".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Blocked on WebXR SpecThis hit-test issue cannot be resolved until more fundamental issues in the WebXR spec are resolved.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions