js/src/jit-test/tests/jaeger/recompile/bug672123.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 var caught = false;
     2 function h(code) {
     3     f = eval("(function(){" + code + "})")
     4     g()
     5 }
     6 function g() {
     7     try {
     8       f();
     9     } catch (r) { caught = true }
    10 }
    11 h("")
    12 for (i = 0; i < 9; i++) {
    13     h("")
    14 }
    15 h("")
    16 h("")
    17 h("")
    18 h("")
    19 h("")
    20 h("")
    21 h("")
    22 h("")
    23 h("")
    24 h("")
    25 h("")
    26 h("")
    27 h("")
    28 h("")
    29 h("")
    30 h("")
    31 h("")
    32 h("")
    33 h("")
    34 h("")
    35 h("")
    36 h("")
    37 h("")
    38 h("")
    39 h("")
    40 h("")
    41 h("")
    42 h("")
    43 h("")
    44 h("")
    45 h("\"\"(gc())")
    46 assertEq(caught, true);

mercurial