js/src/jit-test/tests/basic/bug739694-1.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 newFunc(x) { new Function(x)(); }; try { newFunc("\
     2 var g = newGlobal();\
     3 g.h = function () {\
     4     names = foo.blaaaaaaaaaaaaah().environment.names();\
     5 };\
     6 g.eval('var obj = {a: 1};' + \"with ({a: 1, '0xcafe': 2, ' ': 3, '': 4, '0': 5}) h();\");\
     7 ");
     8 } catch(exc1) {}
     9 function newFunc(x) { new Function(x)(); }; newFunc("\
    10 gczeal(2);\
    11   a=b=c=d=0; this.__defineGetter__('g', gc); for each (y in this);\
    12 ");

mercurial