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

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