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/. */
6 #include "nsISupports.idl"
8 [scriptable, uuid(20d8eb40-c494-497f-b2a6-aaa32f807ebd)]
10 /**
11 * An object containing metainfo for a login stored by the login manager.
12 *
13 * Code using login manager can generally ignore this interface. When adding
14 * logins, default value will be created. When modifying logins, these
15 * properties will be unchanged unless a change is explicitly requested [by
16 * using modifyLogin() with a nsIPropertyBag]. When deleting a login or
17 * comparing logins, these properties are ignored.
18 */
19 interface nsILoginMetaInfo : nsISupports {
20 /**
21 * The GUID to uniquely identify the login. This can be any arbitrary
22 * string, but a format as created by nsIUUIDGenerator is recommended.
23 * For example, "{d4e1a1f6-5ea0-40ee-bff5-da57982f21cf}"
24 *
25 * addLogin will generate a random value unless a value is provided.
26 *
27 * addLogin and modifyLogin will throw if the GUID already exists.
28 */
29 attribute AString guid;
31 /**
32 * The time, in Unix Epoch milliseconds, when the login was first created.
33 */
34 attribute unsigned long long timeCreated;
36 /**
37 * The time, in Unix Epoch milliseconds, when the login was last submitted
38 * in a form or used to begin an HTTP auth session.
39 */
40 attribute unsigned long long timeLastUsed;
42 /**
43 * The time, in Unix Epoch milliseconds, when the login's password was
44 * last modified.
45 */
46 attribute unsigned long long timePasswordChanged;
48 /**
49 * The number of times the login was submitted in a form or used to begin
50 * an HTTP auth session.
51 */
52 attribute unsigned long timesUsed;
53 };