1665792.html (588B)
1 <html class="reftest-wait"> 2 <script> 3 let pp; 4 window.addEventListener("MozReftestInvalidate", finish); 5 window.onload = () => { 6 window[0].stop() 7 window[0].onpagehide = document.createElement("frameset").onload 8 a.src = "" 9 setTimeout(function() { 10 pp = SpecialPowers.wrap(window).printPreview(); 11 pp?.close(); 12 setTimeout(finish, 0); 13 }, 0); 14 } 15 16 let num = 0; 17 function finish() { 18 num++; 19 if (num < 2) { 20 return; 21 } 22 setTimeout(function () { 23 try { pp.close(); } catch (e) {} 24 document.documentElement.className = ""; 25 }, 0); 26 } 27 28 29 </script> 30 <iframe id="a"></iframe>