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 /* vim:set ts=2 sw=2 sts=2 et cindent: */
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 #ifndef nsXPCOMCIDInternal_h__
8 #define nsXPCOMCIDInternal_h__
10 #include "nsXPCOMCID.h"
12 /**
13 * A hashtable-based property bag component.
14 * @implements nsIWritablePropertyBag, nsIWritablePropertyBag2
15 */
16 #define NS_HASH_PROPERTY_BAG_CID \
17 { 0x678c50b8, 0x6bcb, 0x4ad0, \
18 { 0xb9, 0xb8, 0xc8, 0x11, 0x75, 0x95, 0x51, 0x99 } }
19 #define NS_HASH_PROPERTY_BAG_CONTRACTID "@mozilla.org/hash-property-bag;1"
21 /**
22 * Factory for creating nsIUnicharInputStream
23 * @implements nsIUnicharInputStreamFactory
24 * @note nsIUnicharInputStream instances cannot be created via
25 * createInstance. Code must use one of the custom factory methods.
26 */
27 #define NS_SIMPLE_UNICHAR_STREAM_FACTORY_CONTRACTID \
28 "@mozilla.org/xpcom/simple-unichar-stream-factory;1"
30 /**
31 * The global thread manager service. This component is a singleton.
32 * @implements nsIThreadManager
33 */
34 #define NS_THREADMANAGER_CONTRACTID "@mozilla.org/thread-manager;1"
36 /**
37 * A thread pool component.
38 * @implements nsIThreadPool
39 */
40 #define NS_THREADPOOL_CONTRACTID "@mozilla.org/thread-pool;1"
42 /**
43 * The contract id for the nsIXULAppInfo service.
44 */
45 #define XULAPPINFO_SERVICE_CONTRACTID \
46 "@mozilla.org/xre/app-info;1"
48 /**
49 * The contract id for the nsIXULRuntime service.
50 */
51 #define XULRUNTIME_SERVICE_CONTRACTID \
52 "@mozilla.org/xre/runtime;1"
54 #endif // nsXPCOMCIDInternal_h__