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 // |reftest| skip
2 // Any copyright is dedicated to the Public Domain.
3 // http://creativecommons.org/licenses/publicdomain/
5 //-----------------------------------------------------------------------------
6 var BUGNUMBER = 600128;
7 var summary =
8 "Properly handle attempted addition of properties to non-extensible objects";
10 print(BUGNUMBER + ": " + summary);
12 /**************
13 * BEGIN TEST *
14 **************/
16 var o = Object.freeze({});
17 for (var i = 0; i < 10; i++)
18 print(o.u = "");
20 Object.freeze(this);
21 for (let j = 0; j < 10; j++)
22 print(u = "");
25 /******************************************************************************/
27 if (typeof reportCompare === "function")
28 reportCompare(true, true);
30 print("All tests passed!");