js/src/tests/js1_5/Regress/regress-3649-n.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 // |reftest| skip -- skip test due to random oom related errors.
     2 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     3 /* This Source Code Form is subject to the terms of the Mozilla Public
     4  * License, v. 2.0. If a copy of the MPL was not distributed with this
     5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     7 //-----------------------------------------------------------------------------
     8 // testcase from bug 2235 mff@research.att.com
     9 var BUGNUMBER = 3649;
    10 var summary = 'gc-checking branch callback.';
    11 var actual = 'error';
    12 var expect = 'error';
    14 DESCRIPTION = summary;
    15 EXPECTED = expect;
    17 printBugNumber(BUGNUMBER);
    18 printStatus (summary);
    20 expectExitCode(0);
    21 expectExitCode(3);
    22 expectExitCode(5);
    24 var s = "";
    25 s = "abcd";
    26 for (i = 0; i < 100000; i++)  {
    27   s += s;
    28 }
    30 expect = 'No Crash';
    31 actual = 'No Crash';
    33 reportCompare(expect, actual, summary);

mercurial