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 // frame.environment is a Debugger.Environment object
3 var g = newGlobal()
4 var dbg = Debugger(g);
5 g.h = function () {
6 assertEq(dbg.getNewestFrame().environment instanceof Debugger.Environment, true);
7 };
9 g.eval("h()");
10 g.evaluate("h()");
11 g.eval("eval('h()')");
12 g.eval("function f() { h(); }");
13 g.f();