summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-11-01 14:48:34 +0000
committerMoonchild <moonchild@palemoon.org>2021-11-01 14:48:34 +0000
commitcca5103f50979f715bc3bb99c7ad431a8ebc4349 (patch)
tree2f20f699faf79110c3c895728813ba05001ba901 /js
parent44b995aa861a96d3545a39151b46ab57942867e2 (diff)
downloadaura-central-cca5103f50979f715bc3bb99c7ad431a8ebc4349.tar.gz
Issue %3029 - Part 5: Remove remaining telemetry structs, callers and flags.
Diffstat (limited to 'js')
-rw-r--r--js/xpconnect/idl/xpccomponents.idl3
-rw-r--r--js/xpconnect/src/XPCComponents.cpp23
-rw-r--r--js/xpconnect/src/XPCShellImpl.cpp6
-rw-r--r--js/xpconnect/src/XPCWrappedNativeJSOps.cpp6
4 files changed, 3 insertions, 35 deletions
diff --git a/js/xpconnect/idl/xpccomponents.idl b/js/xpconnect/idl/xpccomponents.idl
index 611091c4b..f2668ce6c 100644
--- a/js/xpconnect/idl/xpccomponents.idl
+++ b/js/xpconnect/idl/xpccomponents.idl
@@ -616,9 +616,6 @@ interface nsIXPCComponents_Utils : nsISupports
*/
PRTime getWatchdogTimestamp(in AString aCategory);
- [implicit_jscontext]
- jsval getJSEngineTelemetryValue();
-
/*
* Clone an object into a scope.
* The 3rd argument is an optional options object:
diff --git a/js/xpconnect/src/XPCComponents.cpp b/js/xpconnect/src/XPCComponents.cpp
index 6d0bbcfcb..594753d64 100644
--- a/js/xpconnect/src/XPCComponents.cpp
+++ b/js/xpconnect/src/XPCComponents.cpp
@@ -3193,29 +3193,6 @@ nsXPCComponents_Utils::GetWatchdogTimestamp(const nsAString& aCategory, PRTime*
return NS_OK;
}
-NS_IMETHODIMP
-nsXPCComponents_Utils::GetJSEngineTelemetryValue(JSContext* cx, MutableHandleValue rval)
-{
- RootedObject obj(cx, JS_NewPlainObject(cx));
- if (!obj)
- return NS_ERROR_OUT_OF_MEMORY;
-
- unsigned attrs = JSPROP_ENUMERATE | JSPROP_READONLY | JSPROP_PERMANENT;
-
- size_t i = JS_SetProtoCalled(cx);
- RootedValue v(cx, DoubleValue(i));
- if (!JS_DefineProperty(cx, obj, "setProto", v, attrs))
- return NS_ERROR_OUT_OF_MEMORY;
-
- i = JS_GetCustomIteratorCount(cx);
- v.setDouble(i);
- if (!JS_DefineProperty(cx, obj, "customIter", v, attrs))
- return NS_ERROR_OUT_OF_MEMORY;
-
- rval.setObject(*obj);
- return NS_OK;
-}
-
bool
xpc::CloneInto(JSContext* aCx, HandleValue aValue, HandleValue aScope,
HandleValue aOptions, MutableHandleValue aCloned)
diff --git a/js/xpconnect/src/XPCShellImpl.cpp b/js/xpconnect/src/XPCShellImpl.cpp
index e4e0db96f..6c5fa3087 100644
--- a/js/xpconnect/src/XPCShellImpl.cpp
+++ b/js/xpconnect/src/XPCShellImpl.cpp
@@ -1229,11 +1229,6 @@ XRE_XPCShellMain(int argc, char** argv, char** envp)
mozilla::LogModule::Init();
- // A initializer to initialize histogram collection
- // used by telemetry.
- UniquePtr<base::StatisticsRecorder> telStats =
- MakeUnique<base::StatisticsRecorder>();
-
if (PR_GetEnv("MOZ_CHAOSMODE")) {
ChaosFeature feature = ChaosFeature::Any;
long featureInt = strtol(PR_GetEnv("MOZ_CHAOSMODE"), nullptr, 16);
@@ -1528,7 +1523,6 @@ XRE_XPCShellMain(int argc, char** argv, char** envp)
bogus = nullptr;
#endif
- telStats = nullptr;
appDir = nullptr;
appFile = nullptr;
dirprovider.ClearGREDirs();
diff --git a/js/xpconnect/src/XPCWrappedNativeJSOps.cpp b/js/xpconnect/src/XPCWrappedNativeJSOps.cpp
index 487ff55d7..6c343e1e8 100644
--- a/js/xpconnect/src/XPCWrappedNativeJSOps.cpp
+++ b/js/xpconnect/src/XPCWrappedNativeJSOps.cpp
@@ -937,9 +937,9 @@ const js::ObjectOps XPC_WN_ObjectOpsWithEnumerate = {
// |this| object for a given method (often to the detriment of proper
// call/apply). When these tricks were removed, a fair amount of chrome
// code broke, because it was relying on being able to grab methods off
-// some XPCOM object (like the nsITelemetry service) and invoke them without
-// a proper |this|. So, if it's quite clear that we're in this situation and
-// about to use a |this| argument that just won't work, fix things up.
+// some XPCOM object and invoke them without a proper |this|. So, if it's
+// quite clear that we're in this situation and about to use a |this|
+// argument that just won't work, fix things up.
//
// This hack is only useful for getters/setters if someone sets an XPCOM object
// as the prototype for a vanilla JS object and expects the XPCOM attributes to