1348381.html (701B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <head> 4 <title>Bug 1348381: Crash when recording extremely large canvas' captureStream</title> 5 </head> 6 </body> 7 <canvas id="c" height="0.6"></canvas> 8 <img id="img" src="data:image/gif;base64,R0lGODlhAQABAAAAACwAAAAAAQABAAA="></img> 9 <script type="application/javascript"> 10 const c = document.getElementById("c"); 11 const ctx = c.getContext('2d'); 12 const s = c.captureStream(0); 13 const mr = new MediaRecorder(s); 14 const t = s.getVideoTracks()[0]; 15 mr.start(); 16 const img = document.getElementById('img'); 17 t.enabled = false; 18 ctx.drawImage(img, 16, 18014398509481984); 19 setTimeout(() => document.documentElement.removeAttribute("class"), 100); 20 </script> 21 </body> 22 </html>