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 stringConvert()
2 {
3 var a = [];
4 var s1 = "F", s2 = "1.3", s3 = "5";
5 for (var i = 0; i < 10; i++) {
6 a[0] = 1 >> s1;
7 a[1] = 10 - s2;
8 a[2] = 15 * s3;
9 a[3] = s3 | 32;
10 a[4] = s2 + 60;
11 // a[5] = 9 + s3;
12 // a[6] = -s3;
13 a[7] = s3 & "7";
14 // a[8] = ~s3;
15 }
16 return a.toString();
17 }
18 assertEq(stringConvert(), "1,8.7,75,37,1.360,,,5");