Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
1 <?xml version="1.0"?>
2 <!DOCTYPE window>
3 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" class="reftest-wait" onload="run()">
4 <script type="application/javascript"><![CDATA[
6 function run() {
7 var c = document.getElementById("C");
8 getComputedStyle(c, "").width; // flush
9 c.style.MozBoxOrdinalGroup = "2";
10 document.documentElement.removeAttribute("class");
11 }
13 ]]></script>
14 <label id="A" value="A" />
15 <label id="C" value="C" />
16 <label id="B" value="B" />
17 </window>