diff options
author | Job Bautista <jobbautista9@protonmail.com> | 2023-03-12 20:19:37 +0800 |
---|---|---|
committer | Job Bautista <jobbautista9@aol.com> | 2023-03-12 20:26:26 +0800 |
commit | 4ca103d1b8a7b93be092dc05ea20fa1c4a375ff8 (patch) | |
tree | e50fa340dd5b059c0bbef84a56dbd22365d0586a | |
parent | 1d594e9b3ed035f301f0917eae0bf94b5d54685c (diff) | |
download | uxp-4ca103d1b8a7b93be092dc05ea20fa1c4a375ff8.tar.gz |
Issue #80 - Fix deprot in js/xpconnect.
I think we never deunified js/xpconnect before. But if we're going to ever build
this tree deunified in the future, there's nothing stopping us now!
-rw-r--r-- | js/xpconnect/public/xpc_map_end.h | 1 | ||||
-rw-r--r-- | js/xpconnect/src/Sandbox.cpp | 4 | ||||
-rw-r--r-- | js/xpconnect/src/XPCJSContext.cpp | 3 | ||||
-rw-r--r-- | js/xpconnect/src/XPCJSID.cpp | 1 | ||||
-rw-r--r-- | js/xpconnect/src/XPCLocale.cpp | 2 | ||||
-rw-r--r-- | js/xpconnect/src/XPCWrappedNativeInfo.cpp | 2 | ||||
-rw-r--r-- | js/xpconnect/src/XPCWrappedNativeJSOps.cpp | 1 | ||||
-rw-r--r-- | js/xpconnect/src/XPCWrappedNativeScope.cpp | 1 |
8 files changed, 15 insertions, 0 deletions
diff --git a/js/xpconnect/public/xpc_map_end.h b/js/xpconnect/public/xpc_map_end.h index 4e34267d7f..3186da8787 100644 --- a/js/xpconnect/public/xpc_map_end.h +++ b/js/xpconnect/public/xpc_map_end.h @@ -15,6 +15,7 @@ #endif #include "js/Id.h" +#include "xpc_make_class.h" /**************************************************************/ diff --git a/js/xpconnect/src/Sandbox.cpp b/js/xpconnect/src/Sandbox.cpp index 6888dee376..a34870269a 100644 --- a/js/xpconnect/src/Sandbox.cpp +++ b/js/xpconnect/src/Sandbox.cpp @@ -54,8 +54,12 @@ using namespace mozilla; using namespace JS; using namespace xpc; +using mozilla::dom::ConvertExceptionToPromise; using mozilla::dom::DestroyProtoAndIfaceCache; using mozilla::dom::IndexedDatabaseManager; +using mozilla::dom::RequestOrUSVString; +using mozilla::dom::RequestOrUSVStringArgument; +using mozilla::dom::RootedDictionary; NS_IMPL_CYCLE_COLLECTION_CLASS(SandboxPrivate) diff --git a/js/xpconnect/src/XPCJSContext.cpp b/js/xpconnect/src/XPCJSContext.cpp index 551bfb681f..8ecc14b650 100644 --- a/js/xpconnect/src/XPCJSContext.cpp +++ b/js/xpconnect/src/XPCJSContext.cpp @@ -22,6 +22,7 @@ #include "nsIObserverService.h" #include "nsIDebug2.h" #include "nsIDocShell.h" +#include "nsIInputStream.h" #include "nsIRunnable.h" #include "amIAddonManager.h" #include "nsPIDOMWindow.h" @@ -40,6 +41,7 @@ #include "mozilla/dom/GeneratedAtomList.h" #include "mozilla/dom/BindingUtils.h" #include "mozilla/dom/Element.h" +#include "mozilla/dom/Promise.h" #include "mozilla/dom/ScriptLoader.h" #include "mozilla/dom/WindowBinding.h" #include "mozilla/jsipc/CrossProcessObjectWrappers.h" @@ -71,6 +73,7 @@ #endif using namespace mozilla; +using namespace mozilla::dom; using namespace xpc; using namespace JS; using mozilla::dom::PerThreadAtomCache; diff --git a/js/xpconnect/src/XPCJSID.cpp b/js/xpconnect/src/XPCJSID.cpp index 2bf3939bf1..14525f115b 100644 --- a/js/xpconnect/src/XPCJSID.cpp +++ b/js/xpconnect/src/XPCJSID.cpp @@ -11,6 +11,7 @@ #include "mozilla/Attributes.h" #include "mozilla/jsipc/CrossProcessObjectWrappers.h" #include "mozilla/StaticPtr.h" +#include "nsContentUtils.h" using namespace mozilla::dom; using namespace JS; diff --git a/js/xpconnect/src/XPCLocale.cpp b/js/xpconnect/src/XPCLocale.cpp index 9a55c0ec82..8920dbd922 100644 --- a/js/xpconnect/src/XPCLocale.cpp +++ b/js/xpconnect/src/XPCLocale.cpp @@ -4,6 +4,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "mozilla/Assertions.h" +#include "mozilla/Preferences.h" #include "jsapi.h" @@ -23,6 +24,7 @@ using namespace JS; using mozilla::dom::EncodingUtils; +using mozilla::Preferences; /** * JS locale callbacks implemented by XPCOM modules. These are theoretically diff --git a/js/xpconnect/src/XPCWrappedNativeInfo.cpp b/js/xpconnect/src/XPCWrappedNativeInfo.cpp index a93b006f0f..13cffa5161 100644 --- a/js/xpconnect/src/XPCWrappedNativeInfo.cpp +++ b/js/xpconnect/src/XPCWrappedNativeInfo.cpp @@ -10,7 +10,9 @@ #include "mozilla/MemoryReporting.h" #include "mozilla/XPTInterfaceInfoManager.h" +#include "nsAppRunner.h" #include "nsIScriptError.h" +#include "nsJSUtils.h" #include "nsPrintfCString.h" using namespace JS; diff --git a/js/xpconnect/src/XPCWrappedNativeJSOps.cpp b/js/xpconnect/src/XPCWrappedNativeJSOps.cpp index 6c343e1e8f..ece0cf5076 100644 --- a/js/xpconnect/src/XPCWrappedNativeJSOps.cpp +++ b/js/xpconnect/src/XPCWrappedNativeJSOps.cpp @@ -10,6 +10,7 @@ #include "jsprf.h" #include "mozilla/dom/BindingUtils.h" #include "mozilla/Preferences.h" +#include "nsContentUtils.h" #include "nsIAddonInterposition.h" #include "AddonWrapper.h" #include "js/Class.h" diff --git a/js/xpconnect/src/XPCWrappedNativeScope.cpp b/js/xpconnect/src/XPCWrappedNativeScope.cpp index 4f4e9e7404..d2008e2f8a 100644 --- a/js/xpconnect/src/XPCWrappedNativeScope.cpp +++ b/js/xpconnect/src/XPCWrappedNativeScope.cpp @@ -7,6 +7,7 @@ #include "xpcprivate.h" #include "XPCWrapper.h" +#include "AccessCheck.h" #include "nsContentUtils.h" #include "nsCycleCollectionNoteRootCallback.h" #include "nsPrincipal.h" |