From bd9c17234c330e6a2f01fdc472a9dd81a0ea05c5 Mon Sep 17 00:00:00 2001 From: Samson <16504129+sagudev@users.noreply.github.com> Date: Tue, 3 Oct 2023 17:16:42 +0200 Subject: fix handle_wgpu_msg crash (#30479) * Enter realm before handle_wgpu_msg fix https://github.com/servo/servo/issues/30419 * Update expectations --- components/script/script_thread.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'components/script/script_thread.rs') diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 4ded0c6632a..d25c58db0d8 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -2102,6 +2102,7 @@ impl ScriptThread { result, } => { let global = self.documents.borrow().find_global(pipeline_id).unwrap(); + let _ac = enter_realm(&*global); global.handle_wgpu_msg(device, scope_id, result); }, WebGPUMsg::CleanDevice { -- cgit v1.2.3