[presentation-api] Consider checking for security context in the PresentationRequest constructor

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

== Consider checking for security context in the PresentationRequest 
constructor ==
@mounirlamouri  brought up the following:

Currently, we check for mixed content in the steps to execute 
`start()`, `reconnect()` and `getAvailability()`.  It would simplify 
both the spec and the implementation to move this check to the 
PresentationRequest constructor.

I am not sure if it is okay to throw exceptions in conctructors of Web
 APIs.  If there are precedents, I'd like to know.

Also, we would need to be assured that the security context could not 
be changed between constructor and method invocation.

Please view or discuss this issue at 
https://github.com/w3c/presentation-api/issues/362 using your GitHub 
account

Received on Friday, 21 October 2016 23:01:31 UTC