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 function run_test()
2 {
3 do_get_profile();
5 if (!newCacheBackEndUsed()) {
6 do_check_true(true, "This test doesn't run when the old cache back end is used since the behavior is different");
7 return;
8 }
10 asyncOpenCacheEntry("http://b/", "disk", Ci.nsICacheStorage.OPEN_NORMALLY, null,
11 new OpenCallback(NEW|DOOMED, "b1m", "b1d", function(entry) {
12 entry.asyncDoom(
13 new EvictionCallback(true, function() {
14 finish_cache2_test();
15 })
16 );
17 })
18 );
20 do_test_pending();
21 }