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: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
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 #include "nsISupports.idl"
9 /**
10 * Enumeration of Programming Languages
11 */
13 [scriptable, uuid(ea604e90-40ba-11d5-90bb-0010a4e73d9a)]
14 interface nsIProgrammingLanguage : nsISupports
15 {
16 /**
17 * Identifiers for programming languages.
18 */
19 const uint32_t UNKNOWN = 0;
20 const uint32_t CPLUSPLUS = 1;
21 const uint32_t JAVASCRIPT = 2;
22 const uint32_t PYTHON = 3;
23 const uint32_t PERL = 4;
24 const uint32_t JAVA = 5;
25 const uint32_t ZX81_BASIC = 6; // it could happen :)
26 const uint32_t JAVASCRIPT2 = 7;
27 const uint32_t RUBY = 8;
28 const uint32_t PHP = 9;
29 const uint32_t TCL = 10;
30 // This list can grow indefinitely. Just don't ever change an existing item.
31 const uint32_t MAX = 10; // keep this as the largest index.
33 };