Bug 1628692 - Prepare dom/serviceworkers and dom/workers for making FallibleTArray uncopyable. r=dom-workers-and-storage-reviewers,edenchuang

Differential Revision: https://phabricator.services.mozilla.com/D72618
This commit is contained in:
Simon Giesecke 2020-04-29 08:41:15 +00:00
parent d62827d0da
commit 7cdfb55880
3 changed files with 3 additions and 3 deletions

View File

@ -973,7 +973,7 @@ class MessageEventOp final : public ExtendableEventOp {
// https://w3c.github.io/ServiceWorker/#service-worker-postmessage
if (!deserializationFailed) {
init.mData = messageData;
init.mPorts = ports;
init.mPorts = std::move(ports);
}
init.mSource.SetValue().SetAsClient() = new Client(

View File

@ -494,7 +494,7 @@ class SendMessageEventRunnable final : public ExtendableEventWorkerRunnable {
// https://w3c.github.io/ServiceWorker/#service-worker-postmessage
if (!deserializationFailed) {
init.mData = messageData;
init.mPorts = ports;
init.mPorts = std::move(ports);
}
init.mSource.SetValue().SetAsClient() =

View File

@ -532,7 +532,7 @@ RefPtr<PerformanceInfoPromise> WorkerDebugger::ReportPerformanceInfo() {
->Then(
mainThread, __func__,
[workerRef, url, pid, perfId, windowID, duration, isTopLevel,
items](const PerformanceMemoryInfo& aMemoryInfo) {
items = std::move(items)](const PerformanceMemoryInfo& aMemoryInfo) {
return PerformanceInfoPromise::CreateAndResolve(
PerformanceInfo(url, pid, windowID, duration, perfId, true,
isTopLevel, aMemoryInfo, items),