summaryrefslogtreecommitdiffstats
path: root/dom/base/crashtests/1419902.html
blob: b0742b5be012ea4efb543b3a6df99f1e378a65c8 (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>
  <head>
    <script>
      var winsToClose = []
      onbeforeunload = function() {
        for (let win of winsToClose) {
          if (win) {
            win.close();
          }
        }
      };
      for (let i = 0; i < 38; i++) {
        customElements.define("custom-element_0", class extends HTMLElement {
          constructor() {
            try { o1 = document.createElement("custom-element_0") } catch (e) {}
            try { winsToClose.push(window.open("javascript:'<html><body>dummy</body></html>';")); } catch (e) {}
          }
        })
        try { o3 = document.createElement("custom-element_0") } catch (e) {}
      }
    </script>
  </head>
</html>