summaryrefslogtreecommitdiffstats
path: root/dom/base/crashtests/1508845.html
blob: 470b19b67473ec45a1c81e89634fa207c788a38a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<script>
window.onload=function(){
  let bigShadowTree = `<div>`;
  for (let i = 0; i < 10; ++i)
    bigShadowTree = bigShadowTree + bigShadowTree;
  b.attachShadow({ mode: 'open' }).innerHTML = bigShadowTree;
  // Create wrappers for all those elements.
  [...b.shadowRoot.querySelectorAll('*')].forEach(() => {});
  document.documentElement.addEventListener('DOMNodeRemoved', function(){
    window.frames[0].document.body.appendChild(b)
  })
  window.frames[0].document.body.appendChild(a)
}
</script>
<mark id='a'>
<iframe></iframe>
<div id='b'>