Bug 1660051 [wpt PR 25111] - Origin isolation: expand getter test coverage, a=testonly
[gecko.git] / dom / base / crashtests / 1326194-2.html
blobdbced2f8ff746ac2d987dd9ad28ea20fec9a6189
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <script type="application/javascript">
6 // Crashes if 'target' doesn't get properly unlinked in FragmentOrElement::Unlink
8 function crash() {
9 var target = document.createElement('div');
10 // By setting a custom prop we create a cycle between JS and C++ that requires the CC to break.
11 target.foo = 'bar';
12 var io = new IntersectionObserver(function () { }, { });
13 io.observe(target);
16 </script>
17 </head>
18 <body onload="crash()">
19 </body>
20 </html>