js/src/jit-test/tests/basic/bug713226.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|
     2 gczeal(4);
     3 var optionNames = options().split(',');
     4   for (var i = 0; i < optionNames.length; i++)
     5     var optionName = optionNames[i];
     6 evaluate("\
     7 function addDebug(g, id) {\
     8     var debuggerGlobal = newGlobal();\
     9     debuggerGlobal.debuggee = g;\
    10     debuggerGlobal.id = id;\
    11     debuggerGlobal.print = function (s) { (g) += s; };\
    12     debuggerGlobal.eval('var dbg = new Debugger(debuggee);dbg.onDebuggerStatement = function () { print(id); debugger; };');\
    13     return debuggerGlobal;\
    14 }\
    15 var base = newGlobal();\
    16 var top = base;\
    17 for (var i = 0; i < 8; i++ )\
    18     top = addDebug(top, i);\
    19 base.eval('debugger;');\
    20 ");

mercurial