Bug 1628692 - Prepare dom/base for making FallibleTArray uncopyable. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D72625
This commit is contained in:
Simon Giesecke 2020-04-29 08:42:37 +00:00
Родитель 3fdf472914
Коммит 876336129a
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -914,7 +914,7 @@ already_AddRefed<Promise> ChromeUtils::RequestProcInfo(GlobalObject& aGlobal,
thread->mCpuKernel = entry.cpuKernel;
thread->mTid = entry.tid;
}
procInfo.mThreads = threads;
procInfo.mThreads = std::move(threads);
mozilla::dom::Sequence<mozilla::dom::ChildProcInfoDictionary>
children;
@ -950,9 +950,9 @@ already_AddRefed<Promise> ChromeUtils::RequestProcInfo(GlobalObject& aGlobal,
thread->mTid = entry.tid;
thread->mName.Assign(entry.name);
}
childProcInfo->mThreads = threads;
childProcInfo->mThreads = std::move(threads);
}
procInfo.mChildren = children;
procInfo.mChildren = std::move(children);
domPromise->MaybeResolve(procInfo);
}; // end of ProcInfoResolver

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

@ -250,7 +250,7 @@ RefPtr<PerformanceInfoPromise> DocGroup::ReportPerformanceInfo() {
->Then(
mainThread, __func__,
[self, host, pid, windowID, duration, isTopLevel,
items](const PerformanceMemoryInfo& aMemoryInfo) {
items = std::move(items)](const PerformanceMemoryInfo& aMemoryInfo) {
PerformanceInfo info =
PerformanceInfo(host, pid, windowID, duration,
self->mPerformanceCounter->GetID(), false,