From 261dc37ad8ac328f25180e8c6887b65ae98f49fd Mon Sep 17 00:00:00 2001 From: Job Bautista Date: Sun, 12 Mar 2023 20:17:08 +0800 Subject: [PATCH] Issue #80 - Fix deprot in js/ipc. I think we never deunified js/ipc before. But if we're going to build this tree deunified ever in the future, there's nothing stopping us now! --- js/ipc/JavaScriptShared.cpp | 3 +++ js/ipc/WrapperOwner.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/js/ipc/JavaScriptShared.cpp b/js/ipc/JavaScriptShared.cpp index 6dfb00bc5e..60ea1b8d12 100644 --- a/js/ipc/JavaScriptShared.cpp +++ b/js/ipc/JavaScriptShared.cpp @@ -5,6 +5,8 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "JavaScriptShared.h" +#include "JavaScriptChild.h" +#include "JavaScriptParent.h" #include "mozilla/dom/BindingUtils.h" #include "mozilla/dom/CPOWManagerGetter.h" #include "mozilla/dom/TabChild.h" @@ -16,6 +18,7 @@ using namespace js; using namespace JS; using namespace mozilla; +using namespace mozilla::dom; using namespace mozilla::jsipc; IdToObjectMap::IdToObjectMap() diff --git a/js/ipc/WrapperOwner.cpp b/js/ipc/WrapperOwner.cpp index 92c6e409be..2c16269adc 100644 --- a/js/ipc/WrapperOwner.cpp +++ b/js/ipc/WrapperOwner.cpp @@ -8,6 +8,7 @@ #include "JavaScriptLogging.h" #include "mozilla/Unused.h" #include "mozilla/dom/BindingUtils.h" +#include "GeckoProfiler.h" #include "jsfriendapi.h" #include "js/CharacterEncoding.h" #include "xpcprivate.h" @@ -20,6 +21,7 @@ using namespace js; using namespace JS; using namespace mozilla; +using namespace mozilla::dom; using namespace mozilla::jsipc; struct AuxCPOWData