Tue, 06 Jan 2015 21:39:09 +0100
Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
1 function callback(result) {
2 do_check_eq(result, Ci.nsIXULRuntime.PROCESS_TYPE_CONTENT);
3 do_test_finished();
4 }
6 function run_test() {
7 do_test_pending();
9 do_check_eq(runtime.processType, Ci.nsIXULRuntime.PROCESS_TYPE_DEFAULT);
11 sendCommand("load('test_ipcshell_child.js');");
13 sendCommand("runtime.processType;", callback);
15 [ [ "C", "D" ], [ "D", "C" ], [ "\u010C", "D" ], [ "D", "\u010C" ] ].forEach(
16 function (pair) {
17 do_test_pending();
18 var cmp = pair[0].localeCompare(pair[1]);
19 sendCommand(
20 "'"+ pair[0] +"'.localeCompare('"+ pair[1] +"');",
21 function (result) {
22 do_check_eq(cmp, result);
23 do_test_finished();
24 });
25 })
26 }
27 load('test_ipcshell_child.js');