js/src/tests/js1_5/Regress/regress-174709.js

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

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.

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 //-----------------------------------------------------------------------------
michael@0 7 var BUGNUMBER = 174709;
michael@0 8 var summary = 'Don\'t Crash';
michael@0 9 var actual = 'FAIL';
michael@0 10 var expect = 'PASS';
michael@0 11
michael@0 12 printBugNumber(BUGNUMBER);
michael@0 13 printStatus (summary);
michael@0 14
michael@0 15 /* code removed until replacement can be created. */
michael@0 16
michael@0 17 /* crash and burn */
michael@0 18
michael@0 19 var G2z=["ev","sta","fro","cha","le",[""]];
michael@0 20 var qS0=[];
michael@0 21 qS0.push("G"+2);
michael@0 22 qS0.push("z");
michael@0 23 var kJ6=this[qS0.join("")];
michael@0 24 kJ6[0]+="a";
michael@0 25 kJ6[1]+="rtX";
michael@0 26 kJ6[2]+="mCha";
michael@0 27 kJ6[3]+="rCo";
michael@0 28 kJ6[4]+="ngt";
michael@0 29 function heW(){}
michael@0 30 heW.prototype={};
michael@0 31 var b2V=new Array();
michael@0 32 b2V.push("k");
michael@0 33 b2V.push("J");
michael@0 34 b2V.push(6);
michael@0 35 var Co4=this[b2V.join("")];
michael@0 36 Co4[0]+="l";
michael@0 37 Co4[1]+="opu";
michael@0 38 Co4[2]+="rCo";
michael@0 39 Co4[3]+="deA";
michael@0 40 Co4[4]+="h";
michael@0 41
michael@0 42 var Ke1=[];
michael@0 43 Ke1.push("C");
michael@0 44 Ke1.push("o");
michael@0 45 Ke1.push(4);
michael@0 46 var Qp3=this[Ke1.join("")];
michael@0 47 Qp3[1]+="s";
michael@0 48 Qp3[2]+="de";
michael@0 49 Qp3[3]+="t";
michael@0 50
michael@0 51 var kh1=Qp3[5][Qp3[4]];
michael@0 52
michael@0 53 var l8q=[];
michael@0 54 l8q.push("g".toUpperCase());
michael@0 55 l8q.push(2);
michael@0 56 l8q.push("z");
michael@0 57 /* var e2k=window[l8q.join("")];*/
michael@0 58 var e2k=eval(l8q.join(""));
michael@0 59 for (Qp3[5][kh1] in this)
michael@0 60 for (Qp3[5][kh1+1] in this)
michael@0 61 if (Qp3[5][kh1] > Qp3[5][kh1+1] &&
michael@0 62 Qp3[5][kh1][e2k[4]] == Qp3[5][kh1+1][e2k[4]] &&
michael@0 63 Qp3[5][kh1].substr(kh1,kh1+1) == Qp3[5][kh1+1].substr(kh1,kh1+1))
michael@0 64 Qp3[5][kh1 + 2] = Qp3[5][kh1];
michael@0 65
michael@0 66
michael@0 67 actual = 'PASS';
michael@0 68
michael@0 69 reportCompare(expect, actual, summary);

mercurial