js/src/jit-test/tests/auto-regress/bug638735.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-290712e55ade-linux
     2 // Flags: -j
     3 //
     4 var o9 = Function.prototype;
     5 var o13 = Array;
     6 function f5(o) {
     7 o.watch('p3', function() {});
     8 ox1 = wrap(o);
     9 }
    10 f5(o9);
    11 f5(o13);
    12 var o0 = [];
    13 function f3(o) {
    14             var prop = Object.getOwnPropertyNames(ox1)[0];
    15             if (prop) { Object.defineProperty(ox1, prop, {configurable: true,enumerable: true,unused: 1 }); }
    16 }(function() {
    17 for(var o3 in o0) {
    18 f3(f3);
    19 }
    20 })();
    21   for (var i = 0; i < 9; i++)
    22   {
    23     new Array(1, 2);
    24   }

mercurial