js/src/jit-test/tests/jaeger/recompile/bug659639.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 test();
     2 function iso(d) { new Date(d).toISOString() }
     3 function check(s,millis) { iso(millis); }
     4 function dd(year, month, day, hour, minute, second, millis) {
     5     return Date.UTC(year, 1, day, hour, minute, second, millis);
     6 }
     7 function test() {
     8     try {
     9         check("", 20092353211)
    10         check("", 2009)
    11         check("", 0)
    12         check("", dd(BUGNUMBER, 7, 23, 19, 53, 21, 1))
    13     } catch (e) {}
    14 }
    15 var BUGNUMBER = "10278";
    16 test()

mercurial