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 function test1() {
2 try {
3 return "try";
4 } finally {
5 return "finally";
6 }
7 }
8 assertEq(test1(), "finally");
10 function test2() {
11 try {
12 throw 4;
13 } catch(e) {
14 return "catch";
15 } finally {
16 return "finally";
17 }
18 }
19 assertEq(test2(), "finally");
21 function test3() {
22 try {
23 throw 4;
24 } finally {
25 return "finally"; // Don't rethrow.
26 }
27 }
28 assertEq(test3(), "finally");