layout/svg/crashtests/385852-1.svg

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" onload="setTimeout(boom, 30)" class="reftest-wait">
     3 <script>
     5 var originalRoot = document.documentElement;
     6 var svgCircle;
     8 function boom()
     9 {
    10   var SVG_NS = "http://www.w3.org/2000/svg";
    12   var svgPolyline = document.createElementNS(SVG_NS, 'polyline');
    13   svgCircle   = document.createElementNS(SVG_NS, 'circle');
    15   svgCircle.appendChild(svgPolyline);
    17   document.removeChild(originalRoot);
    18   document.appendChild(svgCircle);
    20   setTimeout(restore, 30);
    21 }
    23 function restore()
    24 {
    25   // We have to put it the root element back in the document so that reftest.js
    26   // sees the event for the removal of class="reftest-wait"!
    27   document.removeChild(svgCircle);
    28   document.appendChild(originalRoot);
    29   document.documentElement.removeAttribute("class");
    30 }
    32 </script>
    34 </svg>

mercurial