[web-bluetooth] Provide a way to pair when the user's paying attention

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

== Provide a way to pair when the user's paying attention ==
https://webbluetoothcg.github.io/web-bluetooth/#error-handling says 
that when the UA receives an "Insufficient Authentication" error, it 
should "attempt to increase the security level of the connection". 
However, increasing the security level may require pairing, which may 
require the user to interact with both their OS and the device, which 
we should only ask them to do after the site tells them what's going 
on.

We should 1) give the site a specific error message saying that it 
needs to ask the user to pair the device, and 2) give the site a way 
to trigger pairing when the user says they're ready. Triggering 
pairing should probably use the "[allowed to show a 
popup](https://html.spec.whatwg.org/multipage/browsers.html#allowed-to-show-a-popup)"
 language that `requestDevice()` uses.

See https://github.com/WebBluetoothCG/web-bluetooth/issues/137

Received on Tuesday, 7 July 2015 17:22:14 UTC