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 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 /**
8 Filename: toString.js
9 Description: 'Tests RegExp method toString'
11 Author: Nick Lerissa
12 Date: March 13, 1998
13 */
15 var SECTION = 'As described in Netscape doc "Whats new in JavaScript 1.2"';
16 var VERSION = 'no version';
17 startTest();
18 var TITLE = 'RegExp: toString';
20 writeHeaderToLog('Executing script: toString.js');
21 writeHeaderToLog( SECTION + " "+ TITLE);
24 /*
25 * var re = new RegExp(); re.toString() For what to expect,
26 * see http://bugzilla.mozilla.org/show_bug.cgi?id=225343#c7
27 */
28 var re = new RegExp();
29 new TestCase ( SECTION, "var re = new RegExp(); re.toString()",
30 '/(?:)/', re.toString());
32 // re = /.+/; re.toString();
33 re = /.+/;
34 new TestCase ( SECTION, "re = /.+/; re.toString()",
35 '/.+/', re.toString());
37 // re = /test/gi; re.toString()
38 re = /test/gi;
39 new TestCase ( SECTION, "re = /test/gi; re.toString()",
40 '/test/gi', re.toString());
42 // re = /test2/ig; re.toString()
43 re = /test2/ig;
44 new TestCase ( SECTION, "re = /test2/ig; re.toString()",
45 '/test2/gi', re.toString());
47 test();