js/src/jit-test/tests/jaeger/bug656914.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 try {
     2   new MyObject;
     3 } catch (e) {}
     5 function MyObject() {
     6   return;
     7   return this;
     8 }
    10 function Foo(x) {
    11   if (x)
    12     this.f = x;
    13 }
    14 var q = new Foo(false);
    15 for (a in q) { assertEq(true, false); }
    17 function Bar(x, y) {
    18   if (!x)
    19     return;
    20   this.f = y;
    21 }
    22 var q2 = new Bar(false, true);
    23 for (b in q2) { assertEq(true, false); }

mercurial