js/src/jit-test/tests/pic/bug558099.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 (function()[function() function() function() function() function() function() {}]);
     2 foo = [{
     3   text: "(function(){if(d){(1)}})",
     4   s: function() {},
     5   test: function() {
     6     try {
     7       f
     8     } catch(e) {}
     9   }
    10 },
    11 {
    12   text: "(function(){t})",
    13   s: function() {},
    14   test: function() {}
    15 },
    16 {
    17   text: "(function(){if(0){}})",
    18   s: function() {},
    19   test: function() {}
    20 },
    21 {
    22   text: "(function(){if(1){}(2)})",
    23   s: function() {},
    24   test: function() {}
    25 },
    26 {
    27   text: "(function(){g})",
    28   b: function() {},
    29   test: function() {}
    30 },
    31 {
    32   text: "(function(){})",
    33   s: function() {},
    34   test: function() {}
    35 },
    36 {
    37   text: "(function(){1})",
    38   s: function() {},
    39   test: function() {}
    40 }]; (function() {
    41   for (i = 0; i < foo.length; ++i) {
    42     a = foo[i]
    43     text = a.text
    44     eval(text.replace(/@/, ""));
    45     if (a.test()) {}
    46   }
    47 } ());
    48 s = [function() function() function() function() function() function() {}]
    49 [function() function() function() function() {}];
    50 (function() { [function() function() {}] });
    51 (function() {});
    52 (eval("\
    53   (function(){\
    54     for each(d in[\
    55       0,0,0,0,0,0,0,0,0,0,0,0,0,null,NaN,1,Boolean(false),Boolean(false)\
    56     ]){\
    57       [].filter(new Function,gczeal(2))\
    58     }\
    59   })\
    60 "))();

mercurial