fix handle_wgpu_msg crash (#30479)

* Enter realm before handle_wgpu_msg

fix https://github.com/servo/servo/issues/30419

* Update expectations
This commit is contained in:
Samson 2023-10-03 17:16:42 +02:00 committed by GitHub
parent dfd14aabef
commit bd9c17234c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View file

@ -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 {