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 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #include "nsISupports.idl" |
michael@0 | 6 | |
michael@0 | 7 | /** |
michael@0 | 8 | * This interface exposes the general notion of a scheduled object with a |
michael@0 | 9 | * integral priority value. Following UNIX conventions, smaller (and possibly |
michael@0 | 10 | * negative) values have higher priority. |
michael@0 | 11 | * |
michael@0 | 12 | * This interface does not strictly define what happens when the priority of an |
michael@0 | 13 | * object is changed. An implementation of this interface is free to define |
michael@0 | 14 | * the side-effects of changing the priority of an object. In some cases, |
michael@0 | 15 | * changing the priority of an object may be disallowed (resulting in an |
michael@0 | 16 | * exception being thrown) or may simply be ignored. |
michael@0 | 17 | */ |
michael@0 | 18 | [scriptable, uuid(aa578b44-abd5-4c19-8b14-36d4de6fdc36)] |
michael@0 | 19 | interface nsISupportsPriority : nsISupports |
michael@0 | 20 | { |
michael@0 | 21 | /** |
michael@0 | 22 | * Typical priority values. |
michael@0 | 23 | */ |
michael@0 | 24 | const long PRIORITY_HIGHEST = -20; |
michael@0 | 25 | const long PRIORITY_HIGH = -10; |
michael@0 | 26 | const long PRIORITY_NORMAL = 0; |
michael@0 | 27 | const long PRIORITY_LOW = 10; |
michael@0 | 28 | const long PRIORITY_LOWEST = 20; |
michael@0 | 29 | |
michael@0 | 30 | /** |
michael@0 | 31 | * This attribute may be modified to change the priority of this object. The |
michael@0 | 32 | * implementation of this interface is free to truncate a given priority |
michael@0 | 33 | * value to whatever limits are appropriate. Typically, this attribute is |
michael@0 | 34 | * initialized to PRIORITY_NORMAL, but implementations may choose to assign a |
michael@0 | 35 | * different initial value. |
michael@0 | 36 | */ |
michael@0 | 37 | attribute long priority; |
michael@0 | 38 | |
michael@0 | 39 | /** |
michael@0 | 40 | * This method adjusts the priority attribute by a given delta. It helps |
michael@0 | 41 | * reduce the amount of coding required to increment or decrement the value |
michael@0 | 42 | * of the priority attribute. |
michael@0 | 43 | */ |
michael@0 | 44 | void adjustPriority(in long delta); |
michael@0 | 45 | }; |