Bug 1893155 - Part 6: Correct constant for minimum epoch day. r=spidermonkey-reviewer...
[gecko.git] / xpfe / appshell / nsIWindowlessBrowser.idl
blobc8c08a34994efecb910f98283736bf82b4b02577
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"
9 interface nsIDocShell;
10 webidl BrowsingContext;
12 /**
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
21 /**
22 * "Closes" the windowless browser and destroys its associated nsIWebBrowser
23 * and docshell.
25 * This method *must* be called for every windowless browser before its last
26 * reference is released.
28 void close();
30 /**
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;
36 /**
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;