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 // Any copyright is dedicated to the Public Domain.
2 // http://creativecommons.org/licenses/publicdomain/
4 testJSON('-', true);
5 testJSON('+', true);
6 testJSON('-f', true);
7 testJSON('+f', true);
8 testJSON('00', true);
9 testJSON('01', true);
10 testJSON('1.', true);
11 testJSON('1.0e', true);
12 testJSON('1.0e+', true);
13 testJSON('1.0e-', true);
14 testJSON('1.0e+z', true);
15 testJSON('1.0e-z', true);
16 testJSON('1.0ee', true);
17 testJSON('1.e1', true);
18 testJSON('1.e+1', true);
19 testJSON('1.e-1', true);
20 testJSON('.', true);
21 testJSON('.1', true);
22 testJSON('.1e', true);
23 testJSON('.1e1', true);
24 testJSON('.1e+1', true);
25 testJSON('.1e-1', true);
27 /******************************************************************************/
29 if (typeof reportCompare === "function")
30 reportCompare(true, true);
32 print("Tests complete");