Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chrome / test / data / webrtc / webaudio_crash.html
blobd4c5447501eb13f55d213ba3aad6b1d42f2936f7
1 <script>
2 audioContext = new AudioContext();
3 dstNode = audioContext.createMediaStreamDestination();
4 mediaStream = dstNode.stream;
6 // Allocate AudioNode with a reference to AudioSourceProvider owned by
7 // the media stream track.
8 srcNode = audioContext.createMediaStreamSource(mediaStream);
10 // Free media stream track.
11 mediaTrack = mediaStream.getAudioTracks()[0];
12 mediaStream.removeTrack(mediaTrack);
13 mediaTrack = null;
14 gc();
16 // Use AudioSourceProvider owned by the media stream track, and ensure there
17 // is no crash.
18 srcNode.connect(audioContext.destination);
19 </script>