js/src/jit-test/tests/auto-regress/bug729571.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 // Binary: cache/js-dbg-64-ca97bbcd6b90-linux
     2 // Flags: --ion-eager
     3 //
     5 gczeal(4);
     6 function TestCase(n, d, e, a) {}
     7 TestCase.prototype.dump = function () {};
     8 TestCase.prototype.testFailed = (function TestCase_testFailed() {
     9 	});
    10   try  {
    11     try    {    }    catch(ex1)    {    }
    12   }  catch(ex)  {  }
    13   options.initvalues  = {};
    14   var optionNames = options().split(',');
    15   var optionsframe = {};
    16   try  {
    17     optionsClear();
    18   }  catch(ex)  {  }
    19 var lfcode = new Array();
    20 lfcode.push("\
    21   try {  } catch (exception) {  }\
    22     try {    } catch (exception) {    }\
    23     try {    } catch (exception) {    }\
    24     try {    } catch (actual) {    }\
    25         var props = {};\
    26   function test(which) {\
    27     var g = newGlobal();\
    28     function addDebugger(g, i) {\
    29         var dbg = Debugger(g);\
    30         dbg.onDebuggerStatement = function (frame) { };\
    31     }\
    32     for (var i = 0; i < 3; i++) {\
    33         addDebugger(g, i);\
    34     }\
    35     g.eval(\"debugger;\");\
    36 }\
    37 for (var j = 0; j < 3; j++) test(j);\
    38 ");
    39 while (true) {
    40 	var file = lfcode.shift(); if (file == undefined) { break; }
    41 	try { evaluate(file); } catch (lfVare) { }
    42 }

mercurial