Bug
1811320 [wpt PR 38067] - Reject pending setSinkId requests with valid ExceptionContext, a=testonly
Automatic update from web-platform-tests
Reject pending setSinkId requests with valid ExceptionContext
Rejecting pending setSinkId requests is a step of
`AudioContext::closeContext`. Because it is rejecting pending setSinkId
from a different Promise entry call, it doesn't have a valid
ExceptionContext which lead a crash. This CL fixes it by creating a
fresh DOMException and attach it to the being rejected pending request
also add a test to guard this case.
Bug:
1408376
Change-Id: Ie3090c1b631ad3ec1132a5e2fba0f047fd01d3e3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/
4179633
Commit-Queue: Alvin Ji <alvinji@chromium.org>
Reviewed-by: Michael Wilson <mjwilson@chromium.org>
Reviewed-by: Hongchan Choi <hongchan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#
1094689}
--
wpt-commits:
8282459e49cd39b819f9d7ab3d0b523807f736ac
wpt-pr: 38067