dom/chrome-webidl/BrowsingContext.webidl
author Andreas Farre <farre@mozilla.com>
Thu, 18 Oct 2018 06:52:30 +0000
changeset 490673 2a0dfe99894b5e2173bd37ea01a1c7292b11e886
parent 484592 86dc76e74294e7c25a2d582d144b8da5f986af20
child 490730 f34bc8a40bec4df77ca477793a8932f6683baa8c
permissions -rw-r--r--
Bug 1498222 - Add BrowsingContext.docShell webidl. r=peterv Differential Revision: https://phabricator.services.mozilla.com/D8381

/* -*- 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 nsIDocShell;

[Exposed=(Window, System), ChromeOnly]
interface BrowsingContext {
  readonly attribute BrowsingContext? parent;

  sequence<BrowsingContext> getChildren();

  readonly attribute nsIDocShell? docShell;

  readonly attribute unsigned long long id;
};