[presentation-api] Let getAvailability() resolve its promise as soon as availability has been tested

foolip has just created a new issue for 
https://github.com/w3c/presentation-api:

== Let getAvailability() resolve its promise as soon as availability 
has been tested ==
http://w3c.github.io/presentation-api/#dom-presentationrequest-getavailability

Reliable sources (@avayvod) tell me that the implementation in 
Chromium "will resolve the promise with availability false and then 
update the value with true as soon as the first device is found" which
 isn't what the spec says.

The exact details are editorial, but I would propose to resolve the 
promise within the definition of getAvailability() and to let the 
monitoring steps only fire events in case of changes.

See https://github.com/w3c/presentation-api/issues/161

Received on Wednesday, 19 August 2015 12:45:27 UTC