Sat, 03 Jan 2015 20:18:00 +0100
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
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 var BUGNUMBER = 445818;
9 var summary = 'Do not crash with threads';
10 var actual = '';
11 var expect = '';
14 //-----------------------------------------------------------------------------
15 test();
16 //-----------------------------------------------------------------------------
18 printBugNumber(BUGNUMBER);
19 printStatus (summary);
21 if (typeof scatter == 'undefined')
22 {
23 print(expect = actual = 'Test skipped. scatter not defined');
24 }
25 else
26 {
27 var array = [{}, {}, {}, {}];
29 function test() {
30 for (var i = 0; i != 42*42*42; ++i) {
31 var obj = array[i % array.length];
32 obj["a"+i] = 1;
33 var tmp = {};
34 tmp["a"+i] = 2;
35 }
36 }
38 scatter([test, test, test, test]);
39 }
41 reportCompare(expect, actual, summary);