1849898-1.html (765B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <meta charset="utf-8"> 4 <script> 5 let pp; 6 window.addEventListener("MozReftestInvalidate", finish); 7 function go() { 8 let c = document.createElement("frameset"); 9 document.documentElement.appendChild(c); 10 11 document.onscroll = () => { 12 try { 13 pp = SpecialPowers.wrap(window).printPreview(); 14 pp?.close(); 15 } catch (e) {} 16 17 setTimeout(finish,0); 18 }; 19 window.scrollBy(0, 10); 20 } 21 22 window.addEventListener("load", go); 23 24 let num = 0; 25 function finish() { 26 num++; 27 if (num < 2) { 28 return; 29 } 30 31 setTimeout(function() { 32 try { 33 pp?.close(); 34 } catch (e) {} 35 36 document.documentElement.removeAttribute("class"); 37 }, 0); 38 } 39 </script> 40 </html>