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
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include "nsIWebBrowserChrome2.idl"
6 #include "nsIURI.idl"
7 #include "nsIDOMNode.idl"
9 /**
10 * nsIWebBrowserChrome3 is an extension to nsIWebBrowserChrome2.
11 */
12 [scriptable, uuid(7f2aa813-b250-4e46-afeb-97b1e91bc9a5)]
13 interface nsIWebBrowserChrome3 : nsIWebBrowserChrome2
14 {
15 /**
16 * Determines the appropriate target for a link.
17 *
18 * @param originalTarget
19 * The original link target.
20 * @param linkURI
21 * Link destination URI.
22 * @param aDOMNode
23 * Link DOM node.
24 * @param isAppTab
25 * Whether or not the link is in an app tab.
26 * @returns A new link target, if appropriate.
27 * Otherwise returns originalTarget.
28 */
29 AString onBeforeLinkTraversal(in AString originalTarget,
30 in nsIURI linkURI,
31 in nsIDOMNode linkNode,
32 in boolean isAppTab);
33 };