1490700.html (691B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <head> 4 <title>Bug 1490700 - Divide-by-zero for screen-capture with max-dimension 0</title> 5 </head> 6 </body> 7 <script type="application/javascript"> 8 async function test() { 9 SpecialPowers.wrap(document).notifyUserGestureActivation(); 10 try { 11 await window.navigator.mediaDevices.getUserMedia({ 12 video: { 13 mediaSource: 'screen', 14 height: {max: 0}, 15 }, 16 }); 17 await window.navigator.mediaDevices.getUserMedia({ 18 video: { 19 mediaSource: 'screen', 20 advanced: [{height: 0}], 21 }, 22 }); 23 } finally { 24 document.documentElement.removeAttribute("class"); 25 } 26 } 27 28 test(); 29 </script> 30 </body> 31 </html>