mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
Bug 1569645 - Add crashtest. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D40647 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
6f14615c8c
commit
5d91259b9f
23
dom/media/test/crashtests/1569645.html
Normal file
23
dom/media/test/crashtests/1569645.html
Normal file
@ -0,0 +1,23 @@
|
||||
<html>
|
||||
<head>
|
||||
<script>
|
||||
function start () {
|
||||
const canvas = document.getElementById("c")
|
||||
canvas.getContext("2d")
|
||||
const video = canvas.captureStream()
|
||||
const ac = new AudioContext()
|
||||
const dest = ac.createMediaStreamDestination()
|
||||
const recorder = new MediaRecorder(
|
||||
new MediaStream([...video.getTracks(), ...dest.stream.getTracks()]), {
|
||||
'mimeType': 'audio/ogg'
|
||||
})
|
||||
recorder.start()
|
||||
}
|
||||
|
||||
window.addEventListener('load', start)
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<canvas id="c"></canvas>
|
||||
</body>
|
||||
</html>
|
@ -128,3 +128,4 @@ test-pref(media.autoplay.block-webaudio,false) load 1545133.html
|
||||
load track-with-zero-dimensions.mp4 # Bug 1542539
|
||||
load 1560215.html
|
||||
load 1547899.html
|
||||
load 1569645.html
|
||||
|
Loading…
Reference in New Issue
Block a user