aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgpu/gpubuffer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webgpu/gpubuffer.rs')
-rw-r--r--components/script/dom/webgpu/gpubuffer.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/components/script/dom/webgpu/gpubuffer.rs b/components/script/dom/webgpu/gpubuffer.rs
index e8d5b8a16dd..0b41d386b4a 100644
--- a/components/script/dom/webgpu/gpubuffer.rs
+++ b/components/script/dom/webgpu/gpubuffer.rs
@@ -271,7 +271,11 @@ impl GPUBufferMethods<crate::DomTypeHolder> for GPUBuffer {
},
};
- let sender = route_promise(&promise, self);
+ let sender = route_promise(
+ &promise,
+ self,
+ self.global().task_manager().dom_manipulation_task_source(),
+ );
if let Err(e) = self.channel.0.send(WebGPURequest::BufferMapAsync {
sender,
buffer_id: self.buffer.0,