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: RegExp_rightContext_as_array.js
9 Description: 'Tests RegExps $\' property (same tests as RegExp_rightContext.js but using $\)'
11 Author: Nick Lerissa
12 Date: March 12, 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: $\'';
20 writeHeaderToLog('Executing script: RegExp_rightContext.js');
21 writeHeaderToLog( SECTION + " "+ TITLE);
23 // 'abc123xyz'.match(/123/); RegExp['$\'']
24 'abc123xyz'.match(/123/);
25 new TestCase ( SECTION, "'abc123xyz'.match(/123/); RegExp['$\'']",
26 'xyz', RegExp['$\'']);
28 // 'abc123xyz'.match(/456/); RegExp['$\'']
29 'abc123xyz'.match(/456/);
30 new TestCase ( SECTION, "'abc123xyz'.match(/456/); RegExp['$\'']",
31 'xyz', RegExp['$\'']);
33 // 'abc123xyz'.match(/abc123xyz/); RegExp['$\'']
34 'abc123xyz'.match(/abc123xyz/);
35 new TestCase ( SECTION, "'abc123xyz'.match(/abc123xyz/); RegExp['$\'']",
36 '', RegExp['$\'']);
38 // 'xxxx'.match(/$/); RegExp['$\'']
39 'xxxx'.match(/$/);
40 new TestCase ( SECTION, "'xxxx'.match(/$/); RegExp['$\'']",
41 '', RegExp['$\'']);
43 // 'test'.match(/^/); RegExp['$\'']
44 'test'.match(/^/);
45 new TestCase ( SECTION, "'test'.match(/^/); RegExp['$\'']",
46 'test', RegExp['$\'']);
48 // 'xxxx'.match(new RegExp('$')); RegExp['$\'']
49 'xxxx'.match(new RegExp('$'));
50 new TestCase ( SECTION, "'xxxx'.match(new RegExp('$')); RegExp['$\'']",
51 '', RegExp['$\'']);
53 // 'test'.match(new RegExp('^')); RegExp['$\'']
54 'test'.match(new RegExp('^'));
55 new TestCase ( SECTION, "'test'.match(new RegExp('^')); RegExp['$\'']",
56 'test', RegExp['$\'']);
58 test();