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: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
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 nsIDOMNode; |
michael@0 | 9 | |
michael@0 | 10 | /** |
michael@0 | 11 | * A service used to sort the contents of a XUL widget. |
michael@0 | 12 | */ |
michael@0 | 13 | [scriptable, uuid(F29270C8-3BE5-4046-9B57-945A84DFF132)] |
michael@0 | 14 | interface nsIXULSortService : nsISupports |
michael@0 | 15 | { |
michael@0 | 16 | const unsigned long SORT_COMPARECASE = 0x0001; |
michael@0 | 17 | const unsigned long SORT_INTEGER = 0x0100; |
michael@0 | 18 | |
michael@0 | 19 | /** |
michael@0 | 20 | * Sort the contents of the widget containing <code>aNode</code> |
michael@0 | 21 | * using <code>aSortKey</code> as the comparison key, and |
michael@0 | 22 | * <code>aSortDirection</code> as the direction. |
michael@0 | 23 | * |
michael@0 | 24 | * @param aNode A node in the XUL widget whose children are to be sorted. |
michael@0 | 25 | * @param aSortKey The value to be used as the comparison key. |
michael@0 | 26 | * @param aSortHints One or more hints as to how to sort: |
michael@0 | 27 | * |
michael@0 | 28 | * ascending: to sort the contents in ascending order |
michael@0 | 29 | * descending: to sort the contents in descending order |
michael@0 | 30 | * comparecase: perform case sensitive comparisons |
michael@0 | 31 | * integer: treat values as integers, non-integers are compared as strings |
michael@0 | 32 | * twostate: don't allow the natural (unordered state) |
michael@0 | 33 | */ |
michael@0 | 34 | void sort(in nsIDOMNode aNode, |
michael@0 | 35 | in AString aSortKey, |
michael@0 | 36 | in AString aSortHints); |
michael@0 | 37 | }; |
michael@0 | 38 | |
michael@0 | 39 | %{C++ |
michael@0 | 40 | nsresult |
michael@0 | 41 | NS_NewXULSortService(nsIXULSortService **result); |
michael@0 | 42 | %} |