W3C home > Mailing lists > Public > public-secondscreen@w3.org > October 2016

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

From: Mark Foltz via GitHub <sysbot+gh@w3.org>
Date: Fri, 21 Oct 2016 23:01:24 +0000
To: public-secondscreen@w3.org
Message-ID: <issues.opened-184588056-1477090881-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:19:01 UTC