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 testFewerGlobalsInInnerTree() {
2 for each (a in [new Number(1), new Number(1), {}, {}, new Number(1)]) {
3 for each (b in [2, "", 2, "", "", ""]) {
4 for each (c in [{}, {}, 3, 3, 3, 3, {}, {}]) {
5 4 + a;
6 }
7 }
8 }
9 delete a;
10 delete b;
11 delete c;
12 return "ok";
13 }
14 assertEq(testFewerGlobalsInInnerTree(), "ok");