summaryrefslogtreecommitdiffstats
path: root/dom/html/crashtests/1785933-inner.html
blob: 8c97da8a8ebb7a9eb901109d2d7e667316107ae6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<style>
* {
  image-rendering: pixelated;
}
</style>
<script>
window.requestIdleCallback(() => {
  a.setSelectionRange(-1, 1)
  document.head.innerHTML = undefined
})
</script>
<embed src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="></embed>
<textarea id="a">aaaaaaaaaaaaaaaa</textarea>
<script>
  const embed = document.querySelector("embed");
  embed.onload = function() {
    var countdown = 20;
    if (location.search) {
        countdown = parseInt(location.search.slice(1)) - 1;
	  }

    if (countdown > 0) {
      location.search = countdown;
    } else {
      window.parent.postMessage("done", "*");
    }
  }
</script>