mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 14:57:32 +09:00
Issue #21 - Remove remaining telemetry structs, callers and flags.
This commit is contained in:
parent
2564be2d79
commit
eaf9e756a0
50 changed files with 31 additions and 500 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1236,11 +1236,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);
|
||||
|
|
@ -1535,7 +1530,6 @@ XRE_XPCShellMain(int argc, char** argv, char** envp)
|
|||
bogus = nullptr;
|
||||
#endif
|
||||
|
||||
telStats = nullptr;
|
||||
appDir = nullptr;
|
||||
appFile = nullptr;
|
||||
dirprovider.ClearGREDirs();
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue