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 <!DOCTYPE HTML>
2 <meta charset=utf-8>
3 <title>Bug 520992</title>
5 <style>
6 #borderBox {
7 background:gold;
8 height:100px;
9 box-sizing:border-box;
10 border: 20px solid gold;
11 }
13 #paddingBox {
14 background:gold;
15 height:100px;
16 box-sizing:padding-box;
17 padding: 20px;
18 }
20 </style>
22 <div id="borderBox"></div>
23 <p id="heightWidth1"></p>
25 <div id="paddingBox"></div>
26 <p id="heightWidth2"></p>
27 <script>
28 var divs = document.getElementsByTagName("div");
29 var textEle1 = document.getElementById("heightWidth1");
30 textEle1.innerHTML += "height = " + getComputedStyle(divs[0]).height;
31 textEle1.innerHTML += ", width = " + getComputedStyle(divs[0]).width;
33 var textEle2 = document.getElementById("heightWidth2");
34 textEle2.innerHTML += "height = " + getComputedStyle(divs[1]).height;
35 textEle2.innerHTML += ", width = " + getComputedStyle(divs[1]).width;
36 </script>