mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
Bug 1696511 - Add crashtest. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D176412
This commit is contained in:
parent
c9aadc914c
commit
09f23c0370
22
dom/media/test/crashtests/1696511.html
Normal file
22
dom/media/test/crashtests/1696511.html
Normal file
@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html class='reftest-wait'>
|
||||
<head>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', async () => {
|
||||
const canvas = document.createElement('canvas')
|
||||
canvas.height = 27530
|
||||
const context = canvas.getContext('2d')
|
||||
context.strokeRect(5, 5, canvas.width - 5, canvas.height - 5)
|
||||
const stream = canvas.captureStream()
|
||||
const recorder = new MediaRecorder(stream)
|
||||
recorder.start()
|
||||
const stopped = new Promise(r => recorder.onstop = r)
|
||||
await new Promise(r => setTimeout(r, 100))
|
||||
stream.getTracks().forEach(t => t.stop())
|
||||
await stopped
|
||||
document.documentElement.removeAttribute("class")
|
||||
})
|
||||
</script>
|
||||
</head>
|
||||
</html>
|
||||
|
@ -146,6 +146,7 @@ load mp4_box_emptyrange.mp4 # Bug 1667480
|
||||
load 1673526-1.html
|
||||
load 1673526-2.html
|
||||
load 1693043.html
|
||||
load 1696511.html
|
||||
load 1697521.html
|
||||
load 1708790.html
|
||||
skip-if(cocoaWidget) load 1709130.html # video failed decoding on MacOS, 1709684
|
||||
|
Loading…
Reference in New Issue
Block a user