[presentation-api] Pull Request: Reject when sandbox blocks the feature instead of not exposing.

mounirlamouri has just submitted a new pull request for 
https://github.com/w3c/presentation-api:

== Reject when sandbox blocks the feature instead of not exposing. ==
The reasons are:
- navigator.presentation returning null only in this edge case will 
lead
  to bugs because developers will not expect this;
- we already have failure mode for all the methods;
- a malicious iframe could hold a Presentation instance if the 
embedder
  where to have the sandbox flags not set properly for a short period 
of
  time (eg. load race condition).

This change also does:
- add mixed security check for getAvailability() so we don't waste
  resources listen for availability when not needed;
- fix editorial issues whith mixed security check where the steps were
  not stopped.

See https://github.com/w3c/presentation-api/pull/292

Received on Thursday, 5 May 2016 15:17:54 UTC