diff options
author | Samson <16504129+sagudev@users.noreply.github.com> | 2023-10-03 17:16:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-03 15:16:42 +0000 |
commit | bd9c17234c330e6a2f01fdc472a9dd81a0ea05c5 (patch) | |
tree | e24741273438a09672e8fd3906700ea5b4f4ba80 /components/script/script_thread.rs | |
parent | dfd14aabef7eb33b09ed5d3b6e4f7faf4cf94b3b (diff) | |
download | servo-bd9c17234c330e6a2f01fdc472a9dd81a0ea05c5.tar.gz servo-bd9c17234c330e6a2f01fdc472a9dd81a0ea05c5.zip |
fix handle_wgpu_msg crash (#30479)
* Enter realm before handle_wgpu_msg
fix https://github.com/servo/servo/issues/30419
* Update expectations
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |