tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

1329093-2.html (841B)


      1 <html class="reftest-wait">
      2 
      3 <head>
      4 </head>
      5 <body>
      6 
      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>
     11 
     12 <script type="text/javascript">
     13 function runTest() {
     14    let frame = document.getElementById("myFrame");
     15    let baz = frame.contentDocument.adoptNode(document.getElementById("svgElement"));
     16    frame.contentDocument.body.appendChild(baz);
     17    baz = null;
     18    frame.remove();
     19    frame = null;
     20    SpecialPowers.gc();
     21    let color = getComputedStyle(document.getElementById('triggerRestyle')).color;
     22    document.documentElement.className = "";
     23 }
     24 </script>
     25 <iframe src="" id="myFrame" onload="runTest();"></iframe>
     26 <div style="display: none" id="triggerRestyle"></div>
     27 </body>
     28 </html>