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 // |jit-test| error: TypeError
2 function start() {
3 MAX_TOTAL_TIME = startTime = new Date
4 do {
5 if (rnd(0)) return (a[rnd()])()
6 lastTime = new Date
7 } while ( lastTime - startTime < MAX_TOTAL_TIME )
8 }
9 function MersenneTwister19937() {
10 this.init_genrand = function() {
11 for (mti = 1; mti < 4; mti++) {
12 Array[mti] = 1
13 }
14 };
15 this.genrand_int32_t = function() {
16 if (mti > 4) {
17 mti = 0
18 }
19 return Array[mti++];
20 }
21 } (function() {
22 fuzzMT = new MersenneTwister19937;
23 fuzzMT.init_genrand()
24 rnd = function() {
25 return Math.floor(fuzzMT.genrand_int32())
26 }
27 } ())
28 function weighted(wa) {
29 a = []
30 for (i = 0; i < wa.length; ++i) {
31 for (var j = 0; j < 8; ++j) {
32 a.push(wa[i].fun)
33 }
34 }
35 }
36 statementMakers = weighted([{
37 fun: function makeMixedTypeArray() { [[, , , , , , , , , , , , , , , , , , ,
38 , , , , , ""][(a[rnd()])()]]}
39 }])
40 start()
42 /* Don't assert. */