js/src/jit-test/tests/auto-regress/bug659779.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-8bcb569c9bf9-linux
     2 // Flags: -m -n -a
     3 //
     5 var gTestcases = new Array;
     6 function TestCase(n, d, e, a) {
     7   this.description=d
     8   gTestcases[gTc++]=this
     9 }
    10 TestCase.prototype.dump=function () + toPrinted(this.description)
    11 function toPrinted(value) value=value;
    12 function reportCompare (expected, actual, description) {
    13   new TestCase("unknown-test-name", description, expected, actual)
    14 }
    15 function enterFunc (funcName) {
    16   try {
    17     expectCompile = 'No Error'
    18     var actualCompile;
    19     reportCompare(expectCompile, actualCompile, ': compile actual')
    20   } catch(ex) {}
    21 }
    22 gTc=0;
    23 function jsTestDriverEnd() {
    24   for (var i = 0; i < gTestcases.length; i++) gTestcases[i].dump()
    25 }
    26 enterFunc();
    27 reportCompare(0, 0, 5.123456);
    28 reportCompare(0, 0, this );
    29 jsTestDriverEnd();
    30 try {
    31   this.__proto__=[]
    32 } catch(ex) {}
    33 jsTestDriverEnd()

mercurial