layout/svg/crashtests/361587-1.svg

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 <svg xmlns="http://www.w3.org/2000/svg"
michael@0 2 onload="setTimeout(boom, 30);"
michael@0 3 class="reftest-wait">
michael@0 4
michael@0 5 <script style="display: none" type="text/javascript">
michael@0 6 <![CDATA[
michael@0 7
michael@0 8 function boom()
michael@0 9 {
michael@0 10 var oldGrad = document.getElementById("grad");
michael@0 11 oldGrad.parentNode.removeChild(oldGrad);
michael@0 12
michael@0 13 var newGrad = document.createElementNS("http://www.w3.org/2000/svg", "radialGradient");
michael@0 14 newGrad.setAttribute("gradientUnits", "userSpaceOnUse");
michael@0 15 newGrad.setAttribute("id", "grad");
michael@0 16
michael@0 17 document.documentElement.appendChild(newGrad);
michael@0 18
michael@0 19 document.documentElement.removeAttribute("class");
michael@0 20 }
michael@0 21
michael@0 22 ]]>
michael@0 23 </script>
michael@0 24
michael@0 25 <radialGradient id="grad" gradientUnits="userSpaceOnUse" cx="240" cy="210" r="220" fx="240" fy="210">
michael@0 26 <stop stop-color="yellow" offset="0"/>
michael@0 27 <stop stop-color="green" offset="1"/>
michael@0 28 </radialGradient>
michael@0 29 <rect x="20" y="150" width="440" height="80" fill="url(#grad)" stroke-width="40"/>
michael@0 30
michael@0 31 </svg>

mercurial