mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
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:
parent
d62827d0da
commit
7cdfb55880
@ -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(
|
||||
|
@ -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() =
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user