1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 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
"nsIWebNavigation.idl"
10 webidl BrowsingContext
;
13 * This interface represents a nsIWebBrowser instance with no associated OS
14 * window. Its main function is to manage the lifetimes of those windows.
15 * A strong reference to this object must be held until the window is
16 * ready to be destroyed.
18 [scriptable
, builtinclass
, uuid(abb46f48
-abfc
-41bf
-aa9a
-7feccefcf977
)]
19 interface nsIWindowlessBrowser
: nsIWebNavigation
22 * "Closes" the windowless browser and destroys its associated nsIWebBrowser
25 * This method *must* be called for every windowless browser before its last
26 * reference is released.
31 * Get the docshell for this browser. This is the docshell that gets
32 * navigated when the browser's nsIWebNavigation interface is used.
34 readonly attribute nsIDocShell docShell
;
37 * Get the Browsing Context for this browser. This is the Browsing Context
38 * that owns the docshell used for navigation.
40 readonly attribute BrowsingContext browsingContext
;