layout/svg/crashtests/366956-2.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" xmlns:html="http://www.w3.org/1999/xhtml" onload="setTimeout(boom1, 30);" class="reftest-wait">
michael@0 2
michael@0 3 <html:script>
michael@0 4
michael@0 5 function boom1()
michael@0 6 {
michael@0 7 document.getElementsByTagName("mi")[0].setAttribute('id', "ffff");
michael@0 8
michael@0 9 document.getElementById("fo").appendChild(document.createTextNode(" "));
michael@0 10
michael@0 11 boom2();
michael@0 12 }
michael@0 13
michael@0 14 function boom2()
michael@0 15 {
michael@0 16 var fodiv = document.getElementById("fodiv");
michael@0 17 fodiv.parentNode.removeChild(fodiv);
michael@0 18
michael@0 19 document.documentElement.removeAttribute("class");
michael@0 20 }
michael@0 21
michael@0 22 </html:script>
michael@0 23
michael@0 24
michael@0 25 <g>
michael@0 26 <foreignObject width="500" height="500" transform="scale(.7,.7)" id="fo" y="300">
michael@0 27
michael@0 28 <div id="fodiv" xmlns="http://www.w3.org/1999/xhtml">
michael@0 29
michael@0 30
michael@0 31
michael@0 32 <p>0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 990 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 990 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 990 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99</p>
michael@0 33
michael@0 34
michael@0 35
michael@0 36 <div><math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
michael@0 37 <mrow>
michael@0 38 <mi>A</mi>
michael@0 39 </mrow>
michael@0 40 </math></div>
michael@0 41
michael@0 42
michael@0 43 <svg xmlns="http://www.w3.org/2000/svg" id="svg" viewbox="0 0 250 250" width="100" height="100">
michael@0 44 <style type="text/css">
michael@0 45 circle:hover {fill-opacity:0.9;}
michael@0 46 </style>
michael@0 47
michael@0 48 <g style="fill-opacity:0.7;" transform="scale(.2)">
michael@0 49 <circle cx="6.5cm" cy="2cm" r="100" style="fill:red; stroke:black; stroke-width:0.1cm" transform="translate(0,50)" />
michael@0 50 <circle cx="6.5cm" cy="2cm" r="100" style="fill:blue; stroke:black; stroke-width:0.1cm" transform="translate(70,150)" />
michael@0 51 <circle cx="6.5cm" cy="2cm" r="100" style="fill:green; stroke:black; stroke-width:0.1cm" transform="translate(-70,150)"/>
michael@0 52 </g>
michael@0 53 </svg>
michael@0 54
michael@0 55 </div>
michael@0 56 </foreignObject>
michael@0 57 </g>
michael@0 58
michael@0 59
michael@0 60
michael@0 61 </svg>

mercurial