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 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include "nsISupports.idl"
7 interface nsIDOMMozVoicemailStatus;
9 [scriptable, uuid(214b0963-da48-4859-a56c-f065a90e0403)]
10 interface nsIVoicemailListener : nsISupports
11 {
12 /**
13 * Called when a voicemail notification has been received by the network.
14 *
15 * @param status
16 * The new voicemail status
17 */
18 void notifyStatusChanged(in nsIDOMMozVoicemailStatus status);
19 };
21 /**
22 * XPCOM component (in the content process) that provides the voicemail
23 * information.
24 */
25 [scriptable, uuid(1bbfff90-88f7-4d73-896e-9620a0000ab0)]
26 interface nsIVoicemailProvider : nsISupports
27 {
28 readonly attribute unsigned long voicemailDefaultServiceId;
30 /**
31 * Called when a content process registers receiving unsolicited messages from
32 * RadioInterfaceLayer in the chrome process. Only a content process that has
33 * the 'voicemail' permission is allowed to register.
34 */
35 void registerVoicemailMsg(in nsIVoicemailListener listener);
36 void unregisterVoicemailMsg(in nsIVoicemailListener listener);
38 nsIDOMMozVoicemailStatus getVoicemailStatus(in unsigned long clientId);
39 DOMString getVoicemailNumber(in unsigned long clientId);
40 DOMString getVoicemailDisplayName(in unsigned long clientId);
41 };