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 File Name: lexical-005.js
9 Corresponds To: 7.4.1-3-n.js
10 ECMA Section: 7.4.1
12 Description:
14 Reserved words cannot be used as identifiers.
16 ReservedWord ::
17 Keyword
18 FutureReservedWord
19 NullLiteral
20 BooleanLiteral
22 Author: christine@netscape.com
23 Date: 12 november 1997
24 */
25 var SECTION = "lexical-005";
26 var VERSION = "JS1_4";
27 var TITLE = "Keywords";
29 startTest();
30 writeHeaderToLog( SECTION + " "+ TITLE);
32 var result = "Failed";
33 var exception = "No exception thrown";
34 var expect = "Passed";
36 try {
37 eval("false = true;");
38 } catch ( e ) {
39 result = expect;
40 exception = e.toString();
41 }
43 new TestCase(
44 SECTION,
45 "false = true" +
46 " (threw " + exception +")",
47 expect,
48 result );
50 test();