From 156753e507a53c489af1eaa6dd93b96daa3c27aa Mon Sep 17 00:00:00 2001 From: Peter Van der Beken Date: Fri, 9 Feb 2018 16:02:37 +0100 Subject: [PATCH] Bug 1448850 - Remove nsIContentProcessMessageManager. r=bz. --HG-- extra : rebase_source : 94ed787dd1bd8b2352f45ccfb1e2f255be07c185 --- dom/base/ProcessGlobal.cpp | 3 +-- dom/base/ProcessGlobal.h | 5 ++--- dom/base/nsCCUncollectableMarker.cpp | 4 ++-- dom/base/nsIMessageManager.idl | 11 ----------- 4 files changed, 5 insertions(+), 18 deletions(-) diff --git a/dom/base/ProcessGlobal.cpp b/dom/base/ProcessGlobal.cpp index e19cc0871651..8549bc4be4c8 100644 --- a/dom/base/ProcessGlobal.cpp +++ b/dom/base/ProcessGlobal.cpp @@ -96,11 +96,10 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_END NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(ProcessGlobal) NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY - NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIContentProcessMessageManager) + NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIMessageManagerGlobal) NS_INTERFACE_MAP_ENTRY(nsIMessageListenerManager) NS_INTERFACE_MAP_ENTRY(nsIMessageSender) NS_INTERFACE_MAP_ENTRY(nsISyncMessageSender) - NS_INTERFACE_MAP_ENTRY(nsIContentProcessMessageManager) NS_INTERFACE_MAP_ENTRY(nsIScriptObjectPrincipal) NS_INTERFACE_MAP_ENTRY(nsIGlobalObject) NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference) diff --git a/dom/base/ProcessGlobal.h b/dom/base/ProcessGlobal.h index 5544166dba42..71391c3c23bf 100644 --- a/dom/base/ProcessGlobal.h +++ b/dom/base/ProcessGlobal.h @@ -26,7 +26,7 @@ namespace mozilla { namespace dom { class ProcessGlobal : - public nsIContentProcessMessageManager, + public nsIMessageManagerGlobal, public nsMessageManagerScriptExecutor, public nsIGlobalObject, public nsIScriptObjectPrincipal, @@ -52,7 +52,7 @@ public: static ProcessGlobal* Get(); NS_DECL_CYCLE_COLLECTING_ISUPPORTS - NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_AMBIGUOUS(ProcessGlobal, nsIContentProcessMessageManager) + NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_AMBIGUOUS(ProcessGlobal, nsIMessageManagerGlobal) virtual JSObject* WrapObject(JSContext* aCx, JS::Handle aGivenProto) override @@ -93,7 +93,6 @@ public: NS_FORWARD_SAFE_NSIMESSAGESENDER(mMessageManager) NS_FORWARD_SAFE_NSISYNCMESSAGESENDER(mMessageManager) NS_FORWARD_SAFE_NSIMESSAGEMANAGERGLOBAL(mMessageManager) - NS_FORWARD_SAFE_NSICONTENTPROCESSMESSAGEMANAGER(mMessageManager) virtual void LoadScript(const nsAString& aURL); diff --git a/dom/base/nsCCUncollectableMarker.cpp b/dom/base/nsCCUncollectableMarker.cpp index 0209a05358e3..7f0140988819 100644 --- a/dom/base/nsCCUncollectableMarker.cpp +++ b/dom/base/nsCCUncollectableMarker.cpp @@ -477,9 +477,9 @@ mozilla::dom::TraceBlackJS(JSTracer* aTrc, bool aIsShutdownGC) } if (nsFrameMessageManager::GetChildProcessManager()) { - nsIContentProcessMessageManager* pg = ProcessGlobal::Get(); + ProcessGlobal* pg = ProcessGlobal::Get(); if (pg) { - mozilla::TraceScriptHolder(pg, aTrc); + mozilla::TraceScriptHolder(ToSupports(pg), aTrc); } } diff --git a/dom/base/nsIMessageManager.idl b/dom/base/nsIMessageManager.idl index 098d238c497c..abc502285b5e 100644 --- a/dom/base/nsIMessageManager.idl +++ b/dom/base/nsIMessageManager.idl @@ -424,17 +424,6 @@ interface nsIInProcessContentFrameMessageManager : nsIContentFrameMessageManager [notxpcom] void cacheFrameLoader(in nativeFrameLoader aFrameLoader); }; -[uuid(6d12e467-2446-46db-9965-e4e93cb87ca5)] -interface nsIContentProcessMessageManager : nsIMessageManagerGlobal -{ - /** - * Read out a copy of the object that was initialized in the parent - * process via nsIProcessScriptLoader.initialProcessData. - */ - [implicit_jscontext] - readonly attribute jsval initialProcessData; -}; - [uuid(bf61446b-ba24-4b1d-88c7-4f94724b9ce1)] interface nsIFrameScriptLoader : nsISupports {