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: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
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 | /** |
michael@0 | 9 | * An optional interface for embedding clients wishing to receive |
michael@0 | 10 | * notifications for when a tooltip should be displayed or removed. |
michael@0 | 11 | * The embedder implements this interface on the web browser chrome |
michael@0 | 12 | * object associated with the window that notifications are required |
michael@0 | 13 | * for. |
michael@0 | 14 | * |
michael@0 | 15 | * @see nsITooltipTextProvider |
michael@0 | 16 | */ |
michael@0 | 17 | [scriptable, uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916)] |
michael@0 | 18 | interface nsITooltipListener : nsISupports |
michael@0 | 19 | { |
michael@0 | 20 | /** |
michael@0 | 21 | * Called when a tooltip should be displayed. |
michael@0 | 22 | * |
michael@0 | 23 | * @param aXCoords The tooltip left edge X coordinate. |
michael@0 | 24 | * @param aYCoords The tooltip top edge Y coordinate. |
michael@0 | 25 | * @param aTipText The text to display in the tooltip, typically obtained |
michael@0 | 26 | * from the TITLE attribute of the node (or containing parent) |
michael@0 | 27 | * over which the pointer has been positioned. |
michael@0 | 28 | * |
michael@0 | 29 | * @note |
michael@0 | 30 | * Coordinates are specified in pixels, relative to the top-left |
michael@0 | 31 | * corner of the browser area. |
michael@0 | 32 | * |
michael@0 | 33 | * @return <code>NS_OK</code> if the tooltip was displayed. |
michael@0 | 34 | */ |
michael@0 | 35 | void onShowTooltip(in long aXCoords, in long aYCoords, in wstring aTipText); |
michael@0 | 36 | |
michael@0 | 37 | /** |
michael@0 | 38 | * Called when the tooltip should be hidden, either because the pointer |
michael@0 | 39 | * has moved or the tooltip has timed out. |
michael@0 | 40 | */ |
michael@0 | 41 | void onHideTooltip(); |
michael@0 | 42 | }; |