1920264.html (553B)
1 <html class="reftest-wait"> 2 <head> 3 <script> 4 async function start () { 5 for (let i = 0; i < 30; ++i) { 6 SpecialPowers.wrap(document).notifyUserGestureActivation(); 7 const s = await navigator.mediaDevices.getDisplayMedia({video: {frameRate: 60}}); 8 const [t] = s.getTracks(); 9 await t.applyConstraints({frameRate: 59}); // reconfigures backend 10 await new Promise(r => setTimeout(r, i)); 11 t.stop(); 12 } 13 document.documentElement.removeAttribute("class") 14 } 15 16 document.addEventListener('DOMContentLoaded', start) 17 </script> 18 </head> 19 </html>