Re: [web-bluetooth] discussion: is there possibility to change getAvailability() be sync API (#459)

The Permissions API is used to check whether the user has configured the UA to block the use of Web Bluetooth or not, and to query for the list of devices that the current site has permission to use. The availability is mostly for checking whether the current system has a Bluetooth radio or not, but if the UA is configured to block Web Bluetooth, availability is false.

If knowing whether Web Bluetooth is allowed is important to the site, the permission should be checked first before availability. I'm not sure what you mean by a LSM diagram, but a section can be included in the spec to provide more specific information about the relationship between permission and availability.

-- 
GitHub Notification of comment by odejesush
Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/459#issuecomment-547112686 using your GitHub account

Received on Monday, 28 October 2019 19:40:03 UTC