commit 179851992dd112074d68c1128cd21f409b05df0d parent 204ff3cf72a1f8b68e396a5d52933641b21bb931 Author: Taym Haddadi <haddadi.taym@gmail.com> Date: Mon, 8 Dec 2025 12:29:42 +0000 Bug 2004570 [wpt PR 56550] - Guard MediaElementAudioSourceNode against closed contexts and add crash test, a=testonly Automatic update from web-platform-tests move mediaElementAudioSource_closed_context-crash.html to tests/wpt/tests/webaudio/the-audio-api/the-mediaelementaudiosourcenode-interface/mediaElementAudioSource_closed_context-crash.html Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> -- wpt-commits: 76922de399d8b20febd9e0b3c5d4f192fe4a8f42 wpt-pr: 56550 Diffstat:
| A | testing/web-platform/tests/webaudio/the-audio-api/the-mediaelementaudiosourcenode-interface/mediaElementAudioSource_closed_context-crash.html | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/webaudio/the-audio-api/the-mediaelementaudiosourcenode-interface/mediaElementAudioSource_closed_context-crash.html b/testing/web-platform/tests/webaudio/the-audio-api/the-mediaelementaudiosourcenode-interface/mediaElementAudioSource_closed_context-crash.html @@ -0,0 +1,9 @@ +<!doctype html> +<meta charset="utf-8"> +<title>Regression for MediaElementAudioSourceNode constructor crash after closing AudioContext</title> +<video id="video"></video> +<script> + var audioContext = new AudioContext(); + audioContext.close(); + new MediaElementAudioSourceNode(audioContext, {mediaElement:video}); +</script>