layout/svg/crashtests/385852-1.svg

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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