Bug 1542783 - Expose WindowGlobalParent.tabParent to JS, r=farre
authorNika Layzell <nika@thelayzells.com>
Wed, 17 Apr 2019 00:53:03 +0000
changeset 469842 0a60df7f0a44a91bd4da6e2788952bf24c521f27
parent 469841 a930e5a3d8aeb5b18623e54d1ed476cc77cbdd69
child 469843 273bf7c8d7609189e977a85ced9d4c0f5889c107
push id112826
push userbtara@mozilla.com
push dateWed, 17 Apr 2019 21:50:20 +0000
treeherdermozilla-inbound@5d0134101bec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfarre
bugs1542783
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1542783 - Expose WindowGlobalParent.tabParent to JS, r=farre Differential Revision: https://phabricator.services.mozilla.com/D26553
dom/chrome-webidl/WindowGlobalActors.webidl
dom/ipc/WindowGlobalParent.h
--- a/dom/chrome-webidl/WindowGlobalActors.webidl
+++ b/dom/chrome-webidl/WindowGlobalActors.webidl
@@ -1,32 +1,35 @@
 /* -*- 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;
+interface TabParent;
 
 [Exposed=Window, ChromeOnly]
 interface WindowGlobalParent {
   readonly attribute boolean isClosed;
   readonly attribute boolean isInProcess;
   readonly attribute CanonicalBrowsingContext browsingContext;
 
   readonly attribute boolean isCurrentGlobal;
 
   readonly attribute unsigned long long innerWindowId;
   readonly attribute unsigned long long outerWindowId;
 
   readonly attribute FrameLoader? rootFrameLoader; // Embedded (browser) only
 
   readonly attribute WindowGlobalChild? childActor; // in-process only
 
+  readonly attribute TabParent? tabParent; // out-of-process only
+
   // Information about the currently loaded document.
   readonly attribute Principal documentPrincipal;
   readonly attribute URI? documentURI;
 
   static WindowGlobalParent? getByInnerWindowId(unsigned long long innerWindowId);
 
   [Throws]
   JSWindowActorParent getActor(DOMString name);
--- a/dom/ipc/WindowGlobalParent.h
+++ b/dom/ipc/WindowGlobalParent.h
@@ -4,31 +4,31 @@
  * 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/. */
 
 #ifndef mozilla_dom_WindowGlobalParent_h
 #define mozilla_dom_WindowGlobalParent_h
 
 #include "mozilla/RefPtr.h"
 #include "mozilla/dom/PWindowGlobalParent.h"
+#include "mozilla/dom/TabParent.h"
 #include "nsRefPtrHashtable.h"
 #include "nsWrapperCache.h"
 #include "nsISupports.h"
 
 class nsIPrincipal;
 class nsIURI;
 class nsFrameLoader;
 
 namespace mozilla {
 namespace dom {
 
 class CanonicalBrowsingContext;
 class WindowGlobalChild;
 class JSWindowActorParent;
-class TabParent;
 
 /**
  * A handle in the parent process to a specific nsGlobalWindowInner object.
  */
 class WindowGlobalParent final : public nsISupports,
                                  public nsWrapperCache,
                                  public PWindowGlobalParent {
   friend class PWindowGlobalParent;