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 myparent(nested) {
5 if (nested) {
6 /* myparent call in myparent. */
7 trap(myparent, 39, "failure()");
8 } else {
9 x = "success";
10 myparent(true);
11 }
12 }
13 function failure() { x = "failure"; }
15 myparent(false);
16 assertEq(x, "success");