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 // |reftest| skip-if((isDebugBuild&&!xulRuntime.shell)||Android) -- hang
2 // Any copyright is dedicated to the Public Domain.
3 // http://creativecommons.org/licenses/publicdomain/
5 if (typeof gczeal != 'undefined' && typeof gc != 'undefined') {
6 try
7 {
8 gczeal(2);
9 var obj = {};
10 for (var i = 0; i < 50; i++) {
11 obj["_" + i] = 0;
12 gc();
13 }
14 }
15 catch(ex)
16 {
17 }
18 gczeal(0);
19 }
20 reportCompare("no assertion failure", "no assertion failure", "bug 524743");