summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/shadow-dom/crashtests/move-to-new-tree-1343016.html
blob: 853884b99301e22383e0fd0936cf154beab5e93e (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
<!DOCTYPE html>
<html class="test-wait">
<head>
<title>Shadow DOM: Move to new tree without crashing</title>
<meta name="author" title="Frank Liberato" href="mailto:liberato@google.com">
<script src="/resources/testdriver.js"></script>
<script src='/resources/testdriver-vendor.js'></script>
</head>

<body>
<video controls id="video"></video>

<script>

async function crash() {
  await test_driver.bless('open popup window', () => {
    let w = window.open("", "", "popup");
    w.document.body.appendChild(document.getElementById("video"));
  });
  document.documentElement.removeAttribute("class");
}

crash();

</script>
</body>
</html>