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| debug
2 setDebug(true);
3 x = "notset";
4 function main() {
5 /* The JSOP_STOP in main. */
6 a = { valueOf: function () { trap(main, 91, "success()"); } };
7 b = "";
8 eval();
9 a + b;
10 x = "failure";
11 }
12 function success() { x = "success"; }
14 main();
15 assertEq(x, "success");