diff options
author | Moonchild <moonchild@palemoon.org> | 2022-03-04 15:34:17 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-03-04 15:34:17 +0000 |
commit | 6714b6ba73af4de3eedde8c0380b26528affc534 (patch) | |
tree | 5cc51b2206f78de0245be7723179871a8dc4a8cc /js/xpconnect/src/XPCWrappedNativeInfo.cpp | |
parent | a05a65278058562ce7bcab7b6a58e256436aa853 (diff) | |
download | GRE-6714b6ba73af4de3eedde8c0380b26528affc534.tar.gz |
Issue #2 - De-unify sources in xpconnect
This also removes some e10s code.
Tag: #12
Diffstat (limited to 'js/xpconnect/src/XPCWrappedNativeInfo.cpp')
-rw-r--r-- | js/xpconnect/src/XPCWrappedNativeInfo.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/js/xpconnect/src/XPCWrappedNativeInfo.cpp b/js/xpconnect/src/XPCWrappedNativeInfo.cpp index a93b006f0..fe089b511 100644 --- a/js/xpconnect/src/XPCWrappedNativeInfo.cpp +++ b/js/xpconnect/src/XPCWrappedNativeInfo.cpp @@ -235,23 +235,6 @@ XPCNativeInterface::NewInstance(nsIInterfaceInfo* aInfo) bool mainProcessScriptableOnly; if (NS_FAILED(aInfo->IsMainProcessScriptableOnly(&mainProcessScriptableOnly))) return nullptr; - if (mainProcessScriptableOnly && !XRE_IsParentProcess()) { - nsCOMPtr<nsIConsoleService> console(do_GetService(NS_CONSOLESERVICE_CONTRACTID)); - if (console) { - const char* intfNameChars; - aInfo->GetNameShared(&intfNameChars); - nsPrintfCString errorMsg("Use of %s in content process is deprecated.", intfNameChars); - - nsAutoString filename; - uint32_t lineno = 0, column = 0; - nsJSUtils::GetCallingLocation(cx, filename, &lineno, &column); - nsCOMPtr<nsIScriptError> error(do_CreateInstance(NS_SCRIPTERROR_CONTRACTID)); - error->Init(NS_ConvertUTF8toUTF16(errorMsg), - filename, EmptyString(), - lineno, column, nsIScriptError::warningFlag, "chrome javascript"); - console->LogMessage(error); - } - } if (NS_FAILED(aInfo->GetMethodCount(&methodCount)) || NS_FAILED(aInfo->GetConstantCount(&constCount))) |