Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Behavior when event data cannot be provided is underspecified #118

Open
rakuco opened this issue Nov 10, 2023 · 3 comments
Open

Behavior when event data cannot be provided is underspecified #118

rakuco opened this issue Nov 10, 2023 · 3 comments
Milestone

Comments

@rakuco
Copy link
Member

rakuco commented Nov 10, 2023

Each of the 3 event types defined in this specification have an excerpt that looks like this:

If an implementation can never provide motion information, the event should be fired with the acceleration, accelerationIncludingGravity and rotationRate attributes set to null.

This does not look entirely clear to me:

  • Should implementations fire a single event with nullable attributes set to null, or does the text intend to give implementations some leeway so that they can continue trying (and consequently fire any number of "empty" events)?
  • Doesn't it make more sense to just not fire an event at all?
@reillyeon
Copy link
Member

I think Chromium puts the sensor into an essentially "stopped" state and so only one event is fired but the concept of "stopped" and "started" don't really exist in this spec.

@rakuco rakuco added this to the VNext milestone Feb 12, 2024
@anssiko
Copy link
Member

anssiko commented Feb 25, 2024

Do we want to try address this by the upcoming CR Snapshot or defer for later? Works both ways.

Discussed in https://www.w3.org/2024/02/12-dap-minutes.html#t10

@reillyeon
Copy link
Member

@rakuco took an action item to discover what the implementation consensus (if any) is on this behavior. If the answer is simple we could adjust the specification test to clarify but I don't think this is blocking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants