summaryrefslogtreecommitdiffstats
path: root/dom/base/crashtests/1838484.html
blob: 4bf748454b25c229f8bf4a7a8a4a3349a8920e3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<html class="reftest-wait">
  <script>
  let pp;
  let num = 0;
  window.addEventListener("MozReftestInvalidate", finish);
  window.requestIdleCallback(() => {
    pp = SpecialPowers.wrap(self).printPreview();
    pp?.print();
    finish();
  });
  function finish() {
    num++;
    if (num < 2) {
      return;
    }
    setTimeout(function() {
      pp.close();
      document.documentElement.className = "";
    }, 0);
  }
  </script>
  <template></template>
</html>