Bug 1886607 - Fill ProcInfoRequest.childTask on iOS. r=nika,profiler-reviewers,florian

Differential Revision: https://phabricator.services.mozilla.com/D205268
This commit is contained in:
Mike Hommey
2024-03-21 20:14:20 +00:00
parent c3211c1d15
commit 4a667e0cbd
2 changed files with 6 additions and 6 deletions

View File

@@ -1517,10 +1517,10 @@ already_AddRefed<Promise> ChromeUtils::RequestProcInfo(GlobalObject& aGlobal,
// DOM windows.
/* aUtilityInfo = */ std::move(utilityActors),
/* aChild = */ 0 // Without a ContentProcess, no ChildId.
#ifdef XP_MACOSX
#ifdef XP_DARWIN
,
/* aChildTask = */ aGeckoProcess->GetChildTask()
#endif // XP_MACOSX
#endif // XP_DARWIN
);
});
@@ -1619,10 +1619,10 @@ already_AddRefed<Promise> ChromeUtils::RequestProcInfo(GlobalObject& aGlobal,
/* aWindowInfo = */ std::move(windows),
/* aUtilityInfo = */ nsTArray<UtilityInfo>(),
/* aChild = */ contentParent->ChildID()
#ifdef XP_MACOSX
#ifdef XP_DARWIN
,
/* aChildTask = */ contentParent->Process()->GetChildTask()
#endif // XP_MACOSX
#endif // XP_DARWIN
);
}

View File

@@ -4840,10 +4840,10 @@ void SamplerThread::SpyOnUnregisteredThreads() {
/* aWindowInfo = */ nsTArray<WindowInfo>{},
/* aUtilityInfo = */ nsTArray<UtilityInfo>{},
/* aChild = */ 0
#ifdef XP_MACOSX
#ifdef XP_DARWIN
,
/* aChildTask = */ MACH_PORT_NULL
#endif // XP_MACOSX
#endif // XP_DARWIN
);
const ProcInfoPromise::ResolveOrRejectValue procInfoOrError =