W3C home > Mailing lists > Public > public-device-apis-log@w3.org > October 2016

Re: [sensors] Does Sensor.stop() require user permission?

From: Alexander Shalamov via GitHub <sysbot+gh@w3.org>
Date: Mon, 31 Oct 2016 13:57:24 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-257300169-1477922242-sysbot+gh@w3.org>
Thanks for checking Tobie. Sorry, I asked question in a wrong way. 
Since we are implementing it at the moment, we need to know precisely 
what should be done when permission is revoked.

Option 1: UA stops sensor and fires state change notification.
Option 2: UA stops sensor and fires two notifications onerror 
(permission) + state change.
Option 3: UA doesn't do anything, webpage it is allowed to call 
Sensor.stop().

-- 
GitHub Notification of comment by alexshalamov
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/146#issuecomment-257300169 using
 your GitHub account
Received on Monday, 31 October 2016 13:57:30 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 12:18:52 UTC