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.
michael@0 | 1 | /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #include "nsISupports.idl" |
michael@0 | 7 | |
michael@0 | 8 | interface nsIArray; |
michael@0 | 9 | |
michael@0 | 10 | [scriptable, uuid(5009acae-6973-48c3-b6d6-52c692cc5d9d)] |
michael@0 | 11 | interface nsIGConfService : nsISupports |
michael@0 | 12 | { |
michael@0 | 13 | /* Basic registry access */ |
michael@0 | 14 | boolean getBool(in AUTF8String key); |
michael@0 | 15 | AUTF8String getString(in AUTF8String key); |
michael@0 | 16 | long getInt(in AUTF8String key); |
michael@0 | 17 | float getFloat(in AUTF8String key); |
michael@0 | 18 | |
michael@0 | 19 | /* |
michael@0 | 20 | * Use this to return any list items in GConf, this will return |
michael@0 | 21 | * an array of UTF16 nsISupportsString's. |
michael@0 | 22 | */ |
michael@0 | 23 | nsIArray getStringList(in AUTF8String key); |
michael@0 | 24 | |
michael@0 | 25 | void setBool(in AUTF8String key, in boolean value); |
michael@0 | 26 | void setString(in AUTF8String key, in AUTF8String value); |
michael@0 | 27 | void setInt(in AUTF8String key, in long value); |
michael@0 | 28 | void setFloat(in AUTF8String key, in float value); |
michael@0 | 29 | |
michael@0 | 30 | /* |
michael@0 | 31 | * Look up the handler for a protocol under the |
michael@0 | 32 | * /desktop/gnome/url-handlers hierarchy. |
michael@0 | 33 | */ |
michael@0 | 34 | AUTF8String getAppForProtocol(in AUTF8String scheme, out boolean enabled); |
michael@0 | 35 | |
michael@0 | 36 | /* |
michael@0 | 37 | * Check whether the handler for a scheme requires a terminal to run. |
michael@0 | 38 | */ |
michael@0 | 39 | boolean handlerRequiresTerminal(in AUTF8String scheme); |
michael@0 | 40 | |
michael@0 | 41 | /* |
michael@0 | 42 | * Set the handler for a protocol, marking it as enabled. |
michael@0 | 43 | * This removes any GnomeVFSMimeApp association for the protocol. |
michael@0 | 44 | */ |
michael@0 | 45 | void setAppForProtocol(in AUTF8String scheme, in AUTF8String command); |
michael@0 | 46 | }; |
michael@0 | 47 | |
michael@0 | 48 | %{C++ |
michael@0 | 49 | #define NS_GCONFSERVICE_CONTRACTID "@mozilla.org/gnome-gconf-service;1" |
michael@0 | 50 | %} |