Bug 1457606 - use an unambiguous name for GetLoadedModule's promise; r=Dexter

It might be better to address this in nsMainThreadPtrHolder, but it's
also really helpful to have nsMainThreadPtrHolder provide meaningful
names for the main thread runnables.  So we'll address this in
TelemetryImpl itself by providing a more-unique name.
This commit is contained in:
Nathan Froyd 2018-06-12 12:25:57 -04:00
Родитель e51a45933f
Коммит d44aec000f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -999,7 +999,7 @@ TelemetryImpl::GetLoadedModules(JSContext *cx, Promise** aPromise)
}
nsMainThreadPtrHandle<Promise> mainThreadPromise(
new nsMainThreadPtrHolder<Promise>("Promise", promise));
new nsMainThreadPtrHolder<Promise>("TelemetryImpl::GetLoadedModules::Promise", promise));
nsCOMPtr<nsIRunnable> runnable = new GetLoadedModulesRunnable(mainThreadPromise);
promise.forget(aPromise);