Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
1 function f(N)
2 {
3 for (var i = 0; i != N; ++i) {
4 var obj1 = {}, obj2 = {};
5 obj1['a'+i] = 0;
6 obj2['b'+i] = 0;
7 for (var repeat = 0;repeat != 2; ++repeat) {
8 for (var j in obj1) {
9 for (var k in obj2) {
10 gc();
11 }
12 }
13 }
14 }
15 }
16 var array = [function() { f(10); },
17 function(array) { f(50); },
18 function() { propertyIsEnumerable.call(undefined, {}); },
19 ];
20 try {
21 for (var i = 0; i != array.length; ++i)
22 array[i]();
23 } catch (e) {}