Update device orientation & motion permission native SPI as per latest proposal
[WebKit-https.git] / LayoutTests / accessibility / crash-adopt-node-from-new-document.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body>
7
8 <canvas>
9 <div id="node1">
10 <div id="node2">
11 </canvas>
12
13 <script>
14 document.getElementById("node2").setAttribute("aria-label", "Label");
15 document.implementation.createDocument("", "", null).adoptNode(node1);
16
17 gc();
18
19 alert("This test makes sure that adopting a node with an AccessibilityObject into a new document doesn't crash. Test passed.");
20
21 </script>
22 <script src="../resources/js-test-post.js"></script>
23 </body>
24 </html>