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 var lfcode = new Array();
2 lfcode.push("\
3 test();\
4 function test() {\
5 function removeAllProperties(o) {\
6 bar() = thaw, patterns;\
7 }\
8 var o = {};\
9 o.first = { toSource: function() { removeAllProperties(o); } };\
10 return o.toSource();\
11 }\
12 ");
13 lfcode.push("test();");
14 gczeal(4);
15 while (true) {
16 var file = lfcode.shift(); if (file == undefined) { break; }
17 loadFile(file);
18 }
19 function loadFile(lfVarx) {
20 try {
21 evaluate(lfVarx);
22 } catch (lfVare) { }
23 }