commit | 930ea94617e6255f1b358a9a27f8da4a9471f98b | [log] [tgz] |
---|---|---|
author | mark a. foltz <mfoltz@chromium.org> | Mon Feb 11 23:04:01 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Feb 11 23:04:01 2019 |
tree | 2cd6a9e4a666f26e8e65eceb3d4bf0ec6be9885b | |
parent | e377eb6cdcdab37607ae25361e06721afcaf1003 [diff] |
[Presentation API] Reject PresentationRequest.start() with the correct error. This fixes the PresentationService so that start will reject with an OperationError if there is a pending start Promise from the same frame. This matches step 3 of the Presentation API spec [1]. Tested manually with the corresponding WPT [2]. [1] https://w3c.github.io/presentation-api/#selecting-a-presentation-display [2] https://github.com/web-platform-tests/wpt/blob/master/presentation-api/controlling-ua/startNewPresentation_unsettledpromise-manual.https.html Bug: 647504 Change-Id: If3f50e70321136556ed1a3d3ab1f4b763a6aa9eb Reviewed-on: https://chromium-review.googlesource.com/c/1460101 Commit-Queue: mark a. foltz <mfoltz@chromium.org> Reviewed-by: Takumi Fujimoto <takumif@chromium.org> Cr-Commit-Position: refs/heads/master@{#630975}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .