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 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "nsISupports.idl"
8 interface nsIArray;
9 interface nsIFile;
11 [scriptable, uuid(60b320d2-1dd2-11b2-bd73-dc3575f78ddd)]
12 interface nsIFileView : nsISupports
13 {
14 const short sortName = 0;
15 const short sortSize = 1;
16 const short sortDate = 2;
18 attribute boolean showHiddenFiles;
19 attribute boolean showOnlyDirectories;
20 readonly attribute short sortType;
21 readonly attribute boolean reverseSort;
23 void sort(in short sortType, in boolean reverseSort);
24 void setDirectory(in nsIFile directory);
25 void setFilter(in AString filterString);
27 readonly attribute nsIArray selectedFiles;
28 };
30 %{C++
32 #define NS_FILEVIEW_CONTRACTID "@mozilla.org/filepicker/fileview;1"
34 %}