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: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "nsISupports.idl"
10 /**
11 * The nsIPrintPreviewNavigation
12 */
13 [scriptable, uuid(8148E3F1-2E8B-11d5-A86C-00105A183419)]
14 interface nsIPrintPreviewNavigation : nsISupports
15 {
17 readonly attribute long pageCount;
20 /**
21 * Preview the next Page
22 *
23 * Return - PR_TRUE if success
24 */
25 boolean nextPage();
27 /**
28 * Preview the previous Page
29 *
30 * Return - PR_TRUE if success
31 */
32 boolean previousPage();
34 /**
35 * Go to a page to preview
36 *
37 * aPageNumber - Page to go preview
38 * Return - PR_TRUE if success
39 */
40 boolean goToPage(unsigned long aPageNumber);
43 /**
44 * Skip pages
45 *
46 * aNumPages - number of pages to skip including the current page. Neg. goes back
47 * Return - true if success
48 */
49 boolean skipPages(long aNumPages);
52 };