[sensors] Should a Sensor instance be deactivated/stopped when being garbage collected?

martijnthe has just created a new issue for https://github.com/w3c/sensors:

== Should a Sensor instance be deactivated/stopped when being garbage collected? ==
I'm assuming "yes", because otherwise the sensor would stay active indefinitely, keep firing event handlers and the script code would have no means to stop it.

It would be nice to make this explicit in the [lifecycle diagram] of the spec.

cc @jiangzidong

[lifecycle diagram]: https://www.w3.org/TR/generic-sensor/#sensor-lifecycle

Please view or discuss this issue at https://github.com/w3c/sensors/issues/246 using your GitHub account

Received on Wednesday, 26 July 2017 12:30:28 UTC