js/src/jit-test/tests/auto-regress/bug657198.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| slow;
     3 // Binary: cache/js-dbg-32-599d1c6cba63-linux
     4 // Flags: -j
     5 //
     6 eval("")
     7 o15 = {}
     8 function f11(o) {
     9     props = Object.getOwnPropertyNames(o)
    10     prop = props.length ? prop[prop.e] + "" : ""
    11     o[prop] = 3
    12 }
    13 function f12(o) {
    14     _someglobal_ = o;
    15     for (j = 0; j < 5; j++) {
    16         for (x in {
    17             x: {
    18                 x: function() {
    19                     return _someglobal_
    20                 }
    21             }.x()
    22         }.x) {
    23             ({
    24                 x: {
    25                     x: function() {}
    26                 }.x()
    27             }[x])
    28         }
    29         gc()
    30     }
    31 } {
    32     for (i = 0; i < 100; i++) {
    33         f12(o15)
    34         f11(o15)
    35     }
    36 }

mercurial