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 // Don't assert.
2 gczeal(2,1);
3 eval("(function() { " + "\
4 var g1 = newGlobal('same-compartment');\
5 function test(str, f) {\
6 var x = f(eval(str));\
7 assertEq(x, f(g1.eval(str)));\
8 }\
9 test('new RegExp(\"1\")', function(r) assertEq('a1'.search(r), 1));\
10 " + " })();");
11 eval("(function() { " + "" + " })();");