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"
8 #include "nsIException.idl"
10 [scriptable, uuid(dd250248-2586-4ec1-a68f-8d14ef452517)]
11 interface nsIXPCException : nsIException
12 {
13 // inherits methods from nsIException
15 void initialize(in AUTF8String aMessage,
16 in nsresult aResult,
17 in AUTF8String aName,
18 in nsIStackFrame aLocation,
19 in nsISupports aData,
20 in nsIException aInner);
21 };
23 /* this goes into the C++ header verbatim. */
24 %{ C++
25 /********************************************************/
26 // {5632BF70-51EC-11d3-9896-006008962422}
27 #define NS_XPCEXCEPTION_CID \
28 { 0x5632bf70, 0x51ec, 0x11d3, \
29 { 0x98, 0x96, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
30 %}