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 var result1 = "unset";
3 var result2 = "failure";
4 function main() {
5 result1 = "failure";
6 try {
7 throw "something";
8 } catch(e) {
9 result2 = "success";
10 }
11 }
12 function nop() { }
14 setDebug(true);
15 setThrowHook("result1 = 'success'; nop()");
17 main();
18 assertEq(result1, "success");
19 assertEq(result2, "success");