W3C home > Mailing lists > Public > public-web-bluetooth-log@w3.org > January 2016

Re: [web-bluetooth] Consider simplifying the 3-way mapping for allowed devices.

From: Giovanni Ortuno via GitHub <sysbot+gh@w3.org>
Date: Fri, 15 Jan 2016 02:18:17 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issue_comment.created-171849029-1452824295-sysbot+gh@w3.org>
The spec very explicitly defines how the map should be structured:

`For each origin, the UA MUST maintain an allowed devices map, whose 
keys are the Bluetooth devices the origin is allowed to access, and 
whose values are pairs of a DOMString device id and an allowed 
services list consisting of UUIDs for GATT Primary Services the origin
 is allowed to access on the device.`

Having the implementation match the spec as closely as possible makes 
it easier to make changes in the future and helps keep track of where 
each feature is implemented.

-- 
GitHub Notification of comment by g-ortuno
Please view or discuss this issue at 
https://github.com/WebBluetoothCG/web-bluetooth/issues/199#issuecomment-171849029
 using your GitHub account
Received on Friday, 15 January 2016 02:18:20 UTC

This archive was generated by hypermail 2.3.1 : Friday, 15 January 2016 02:18:20 UTC