toolkit/devtools/server/nsIJSInspector.idl

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

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 * Utilities for integrating the JSInspector object into an XPCOM
michael@0 9 * application.
michael@0 10 */
michael@0 11 [scriptable, uuid(6758d0d7-e96a-4c5c-bca8-3bcbe5a15943)]
michael@0 12 interface nsIJSInspector : nsISupports
michael@0 13 {
michael@0 14 /**
michael@0 15 * Process the thread's event queue until exit.
michael@0 16 *
michael@0 17 * @param requestor A token the requestor passes to identify the pause.
michael@0 18 *
michael@0 19 * @return depth Returns the number of times the event loop
michael@0 20 * has been nested using this API.
michael@0 21 */
michael@0 22 unsigned long enterNestedEventLoop(in jsval requestor);
michael@0 23
michael@0 24 /**
michael@0 25 * Exits the current nested event loop.
michael@0 26 *
michael@0 27 * @return depth The number of nested event loops left after
michael@0 28 * exiting the event loop.
michael@0 29 *
michael@0 30 * @throws NS_ERROR_FAILURE if there are no nested event loops
michael@0 31 * running.
michael@0 32 */
michael@0 33 unsigned long exitNestedEventLoop();
michael@0 34
michael@0 35 readonly attribute unsigned long eventLoopNestLevel;
michael@0 36
michael@0 37 /**
michael@0 38 * The token provided by the actor that last requested a nested event loop.
michael@0 39 */
michael@0 40 readonly attribute jsval lastNestRequestor;
michael@0 41 };

mercurial