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 // Compiled
2 function TestCase(a) { }
4 // Not compiled (try)
5 function reportCompare (actual) {
6 TestCase(actual);
7 try { } catch(ex) { }
8 }
10 // Compiled
11 function addThis(bound) {
12 actualvalues[bound] = undefined + actual;
13 reportCompare(actualvalues[bound]);
14 }
16 var actual = '';
17 var actualvalues = [];
18 addThis(0);
19 actual = NaN;
20 addThis(1);