Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
9e5db17
commit f64f32e
Showing
1 changed file
with
37 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters