Bug 1928997: Update tabs icon in Unified Search popup r=desktop-theme-reviewers,daleh...
[gecko.git] / dom / svg / crashtests / 1329093-2.html
blob444b7aae8ee2c8ba8737a999e6ae733ee26ca92c
1 <html class="reftest-wait">
3 <head>
4 </head>
5 <body>
7 Loading the below iframe should not crash Firefox in Stylo mode.
8 <svg height="100" width="100" id="svgElement">
9 <circle cx="50" cy="50" r="40" stroke="yellow" stroke-width="2" fill="green"/>
10 </svg>
12 <iframe src="" id="myFrame"></iframe>
13 <div style="display: none" id="triggerRestyle"></div>
14 <script type="text/javascript">
15 let frame = document.getElementById("myFrame");
16 frame.onload = function() {
17 let baz = frame.contentDocument.adoptNode(document.getElementById("svgElement"));
18 frame.contentDocument.body.appendChild(baz);
19 baz = null;
20 frame.remove();
21 frame = null;
22 SpecialPowers.gc();
23 let color = getComputedStyle(document.getElementById('triggerRestyle')).color;
24 document.documentElement.className = "";
26 </script>
27 </body>
28 </html>