js/src/jit-test/tests/basic/bug627692-2.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 N = 0;
     2 function n() {}
     3 s = n;
     4 function f(foo) {
     5     gc();
     6     try {
     7         (Function(foo))();
     8     } catch(r) {}
     9     delete this.Math;
    10 }
    11 function g() {}
    12 var c;
    13 function y() {}
    14 t = b = eval;
    15 f("\
    16   __defineGetter__(\"\",\
    17     function(p){\
    18       for(var s in this) {}\
    19     }\
    20   )[\"\"]\
    21 ");
    22 f("\
    23   do;\
    24   while(([\
    25     \"\" for each(z in this)\
    26   ])&0)\
    27 ");
    28 f();

mercurial