Tue, 06 Jan 2015 21:39:09 +0100
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.
1 <!doctype html>
2 <html class="reftest-wait">
3 <head>
4 <title>menclose longdiv</title>
5 <meta charset="utf-8"/>
6 <script type="text/javascript">
7 function doTest()
8 {
9 var box = document.getElementById("box").getBoundingClientRect();
10 var x = " " + box.left + "," + box.top + " " ;
11 document.getElementById("path").setAttribute("d",
12 "M" + (box.left + "," + (box.top + box.height)) +
13 "Q" + ((box.left + 15) + "," + (box.top + box.height)/2) + x +
14 "L" + ((box.left + box.width) + "," + box.top));
15 document.documentElement.removeAttribute("class");
16 }
17 window.addEventListener("MozReftestInvalidate",doTest, false);
18 </script>
19 </head>
20 <body>
22 <div style="position: absolute; left: 20px; top: 20px;">
23 <math>
24 <mphantom>
25 <menclose id="box" notation="longdiv">
26 <mspace width="200px" height="100px"></mspace>
27 </menclose>
28 </mphantom>
29 </math>
30 </div>
32 <div style="position: absolute; left: 0px; top: 0px;">
33 <svg width="500px" height="500px">
34 <path id="path" style="fill: none; stroke-width: 11px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path>
35 </svg>
36 </div>
38 </body>
39 </html>