W3C home > Mailing lists > Public > public-device-apis-log@w3.org > September 2018

Re: [sensors] Garbage collection behavior unclear in Generic Sensor spec

From: Anssi Kostiainen via GitHub <sysbot+gh@w3.org>
Date: Wed, 19 Sep 2018 08:16:04 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-422703695-1537344962-sysbot+gh@w3.org>
Thanks for your implementation feedback, excited to hear Moddable implements the Generic Sensor API.

I think the test for "Deactivate a sensor object" is correct. @rakuco and @Honry to confirm.

It is correct that the https://w3c.github.io/sensors/#deactivate-a-sensor-object abstract operation invoked when a `Sensor` object is eligible for garbage collection does not set the state to `idle`. Only https://w3c.github.io/sensors/#sensor-stop and https://w3c.github.io/sensors/#notify-error abstract operations do.

You should consider the normative specification text authoritative over the diagrams. A possible clarification to the diagram would perhaps be to replace "onerror" with "notify error".

I'll let others to chime in.

-- 
GitHub Notification of comment by anssiko
Please view or discuss this issue at https://github.com/w3c/sensors/issues/372#issuecomment-422703695 using your GitHub account
Received on Wednesday, 19 September 2018 08:16:06 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 19 September 2018 08:16:06 UTC