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.
2 s = newGlobal()
3 function f(code) {
4 evalcx(code, s)
5 }
6 f("\
7 c = [];\
8 var x;\
9 for each(z in[\
10 x,,[],,new Number,,,,new Number,,,,new Number,new Number,[],\
11 ,,,[],,new Number,,new Number,,[],new Number,[],,,,,,[],\
12 new Number,,new Number,[],,[],,,,[],,[],,,,,,,,,[],[],,[],\
13 [],[],,new Number,[],[],,[],,new Number,new Number,new Number,\
14 new Number,new Number,,,new Number,new Number,,[],[],[],,,[],\
15 [],[],new Number,,new Number,,,,,[],new Number,new Number,[],\
16 [],[],[],,x,[]]\
17 ) {\
18 c = z\
19 };\
20 ");
21 f("c");