[web-bluetooth] Use the canonicalizing algorithm when querying the bluetooth permission

zakorgy has just created a new issue for 
https://github.com/WebBluetoothCG/web-bluetooth:

== Use the canonicalizing algorithm when querying the bluetooth 
permission ==
In the [query the "bluetooth" permission 
algorithm](https://webbluetoothcg.github.io/web-bluetooth/#query-the-bluetooth-permission)
 before `Step 6.2`. I think there should be a check with calling the 
[canonicalization](https://webbluetoothcg.github.io/web-bluetooth/#bluetoothlescanfilterinit-canonicalizing)
 on each filter in `desc.filters`, to prevent using not valid filters 
or passing blocklisted services. If any of these calls return with an 
error, propagate that error and abort the steps. Otherwise use the 
results of the canonicalization to match a filter in `Step 6.2`.


Please view or discuss this issue at 
https://github.com/WebBluetoothCG/web-bluetooth/issues/347 using your 
GitHub account

Received on Monday, 16 January 2017 12:46:26 UTC