js/src/jit-test/tests/basic/bug728190.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.

     1 // |jit-test| slow;
     3 function TestCase(n, d, e, a) {}
     4 var lfcode = new Array();
     5 lfcode.push("");
     6 lfcode.push("\
     7   var summary = 'foo';\
     8   test();\
     9   function test() {\
    10     test(\"TEST-UNEXPECTED-FAIL | TestPerf | \" + summary);\
    11   }\
    12 ");
    13 lfcode.push("gczeal(2);");
    14 lfcode.push("\
    15   new TestCase(TestFunction_3( \"P\", \"A\", \"S\", \"S\" ) +\"\");\
    16   new TestCase(TestFunction_4( \"F\", \"A\", (\"length\"), \"L\" ) +\"\");\
    17   function TestFunction_3( a, b, c, d, e ) {\
    18     TestFunction_3(arguments);\
    19   }\
    20 ");
    21 while (true) {
    22         var file = lfcode.shift(); if (file == undefined) { break; }
    23         try { evaluate(file); } catch (lfVare) {}
    24 }

mercurial