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| error:out of memory
3 gcPreserveCode();
4 evaluate("gcparam(\"maxBytes\", gcparam(\"gcBytes\") + 4*1024);");
5 evaluate("\
6 function testDontEnum(F) { \
7 function test() {\
8 var upvar = \"\";\
9 function f() { upvar += \"\"; }\
10 typeof (new test(\"1\")) != 'function'\
11 }\
12 test();\
13 } \
14 var list = [];\
15 for (i in list)\
16 var F = this[list[i]];\
17 actual = testDontEnum(F);\
18 ");