2018-10-20 02:02:56 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
interface Principal;
|
|
|
|
interface URI;
|
|
|
|
interface nsIDocShell;
|
|
|
|
|
|
|
|
[Exposed=Window, ChromeOnly]
|
|
|
|
interface WindowGlobalParent {
|
|
|
|
readonly attribute boolean isClosed;
|
|
|
|
readonly attribute boolean isInProcess;
|
|
|
|
readonly attribute ChromeBrowsingContext browsingContext;
|
|
|
|
|
2018-10-20 23:04:00 +03:00
|
|
|
readonly attribute unsigned long long innerWindowId;
|
|
|
|
readonly attribute unsigned long long outerWindowId;
|
|
|
|
|
2018-10-21 02:39:02 +03:00
|
|
|
readonly attribute FrameLoader? rootFrameLoader; // Embedded (browser) only
|
2018-10-20 02:02:56 +03:00
|
|
|
|
|
|
|
readonly attribute WindowGlobalChild? childActor; // in-process only
|
|
|
|
|
|
|
|
// Information about the currently loaded document.
|
|
|
|
readonly attribute Principal documentPrincipal;
|
|
|
|
readonly attribute URI? documentURI;
|
2018-10-20 23:04:00 +03:00
|
|
|
|
|
|
|
static WindowGlobalParent? getByInnerWindowId(unsigned long long innerWindowId);
|
2018-10-20 02:02:56 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
[Exposed=Window, ChromeOnly]
|
|
|
|
interface WindowGlobalChild {
|
|
|
|
readonly attribute boolean isClosed;
|
|
|
|
readonly attribute boolean isInProcess;
|
|
|
|
readonly attribute BrowsingContext browsingContext;
|
|
|
|
|
2018-10-20 23:04:00 +03:00
|
|
|
readonly attribute unsigned long long innerWindowId;
|
|
|
|
readonly attribute unsigned long long outerWindowId;
|
|
|
|
|
2018-10-20 02:02:56 +03:00
|
|
|
readonly attribute WindowGlobalParent? parentActor; // in-process only
|
2018-10-20 23:04:00 +03:00
|
|
|
|
|
|
|
static WindowGlobalChild? getByInnerWindowId(unsigned long long innerWIndowId);
|
2018-10-20 02:02:56 +03:00
|
|
|
};
|