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 /* -*- Mode: js; js-indent-level: 2; -*- */
2 /* Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/ */
5 // Test devtools.lazyRequireGetter
7 function run_test() {
8 const o = {};
9 devtools.lazyRequireGetter(o, "asyncUtils", "devtools/async-utils");
10 const asyncUtils = devtools.require("devtools/async-utils");
11 // XXX: do_check_eq only works on primitive types, so we have this
12 // do_check_true of an equality expression.
13 do_check_true(o.asyncUtils === asyncUtils);
14 }