Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / dom / canvas / test / crash / file_798802-1.html
blob92ab50fd87f45c7e7961a4ae8cb6b87eaf47d813
1 <html>
2 <head>
3 <script>
4 onload = function() {
5 var canvas2d = document.createElement('canvas')
6 canvas2d.setAttribute('width', 0)
7 document.body.appendChild(canvas2d)
8 var ctx2d = canvas2d.getContext('2d')
9 ctx2d.fillStyle = 'black'
10 var gl = document.createElement('canvas').getContext('experimental-webgl')
11 gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, canvas2d)
12 ctx2d.fillRect(0, 0, 1, 1)
14 </script>
15 </head>
16 <body>
17 </body>
18 </html>