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 // Any copyright is dedicated to the Public Domain.
2 // http://creativecommons.org/licenses/publicdomain/
3 // Contributor: Jason Orendorff <jorendorff@mozilla.com>
5 var x = {};
6 for (var i = 0; i < 2; i++) {
7 Object.defineProperty(x, "y", {configurable: true, value: function () {}});
8 x.y();
9 }
10 reportCompare(0, 0, "ok");