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 // Binary: cache/js-dbg-32-b4fee3813956-linux
2 // Flags: -j
3 //
4 var aej=new Array( 'A3|297|420', 'dummy|1|1' );
5 var aes=aej.length-1,
6 aet=new Array();
7 for(var i=0; i <= aes; ++i)
8 aet[i] = aej[i].split('|');
9 afo=4;
10 R=new Array(
11 '17523|2500|275||',
12 '17524|5000|300.3||',
13 '17535|500|207.4|=|120x120|=|=|=|=|=|=|=',
14 '17556|500|349.3|=|A5|=|=|=|=|=|=|='
15 );
16 var ags = R.length-1;
17 px= new Array();
18 for(var i=1; i<=ags; i++) {
19 px[i] = R[i].split('|');
20 for(var j=0; j<=11;j++)
21 agt = ank(px[i][afo]);
22 }
23 function ank(akr) {
24 var XX=YY=0;
25 for(var i=0;i<aet.length;i++)
26 if((XX==0) && (akr.indexOf('x')>0)) {
27 var tt=akr.split('x');
28 XX=tt[0];YY=tt[1]
29 }
30 }