Version: 57.0.2935.0 canary (64-bit) OS: Mac OS X 10.10 What steps will reproduce the problem? (1) Visit https://rawgit.com/mfoltzgoogle/web-platform-tests/single-presentation-url/presentation-api/controlling-ua/startNewPresentation_sandboxing_success-manual.html (2) Click Start Presentation Test (3) Dismiss the MR dialog What is the expected result? Test passes What happens instead? Test fails: assert_equals: Presentation could not be started from nested frame. expected "success" but got "AbortError" at Test.<anonymous> (http://web-platform.test:8000/presentation-api/controlling-ua/startNewPresentation_sandboxing_success-manual.html:24:17) at Test.step (http://web-platform.test:8000/resources/testharness.js:1403:25) at http://web-platform.test:8000/resources/testharness.js:1427:35 Notes: The test is expecting start() to reject with NotAllowedError when the dialog is dismissed. https://github.com/mfoltzgoogle/web-platform-tests/blob/single-presentation-url/presentation-api/controlling-ua/support/iframe.html#L26
Vadim, a change in the SDK will be needed, I think it relies on AbortError now in cast_api.js
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/942907a6114aadcf231cb66bd72fdaa16eacc583 commit 942907a6114aadcf231cb66bd72fdaa16eacc583 Author: zhaobin <zhaobin@chromium.org> Date: Wed Nov 30 20:25:17 2016 [Presentation API] Throw NotAllowedError instead of AbortError when user closes MR dialog To fix web platform test: http://w3c-test.org/presentation-api/controlling-ua/startNewPresentation_displaynotallowed-manual.html According to spec, reject promise with "NotAllowedError" if user denies permission to use a display (Step 12: https://w3c.github.io/presentation-api/#dfn-start-a-presentation-connection) BUG= 669273 Review-Url: https://codereview.chromium.org/2533073002 Cr-Commit-Position: refs/heads/master@{#435399} [modify] https://crrev.com/942907a6114aadcf231cb66bd72fdaa16eacc583/chrome/android/javatests/src/org/chromium/chrome/browser/media/router/MediaRouterIntegrationTest.java [modify] https://crrev.com/942907a6114aadcf231cb66bd72fdaa16eacc583/chrome/test/media_router/media_router_integration_browsertest.cc [modify] https://crrev.com/942907a6114aadcf231cb66bd72fdaa16eacc583/third_party/WebKit/Source/modules/presentation/PresentationError.cpp
Comment 1 by avayvod@chromium.org
, Nov 29 2016