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, result,
} => { } => {
let global = self.documents.borrow().find_global(pipeline_id).unwrap(); let global = self.documents.borrow().find_global(pipeline_id).unwrap();
let _ac = enter_realm(&*global);
global.handle_wgpu_msg(device, scope_id, result); global.handle_wgpu_msg(device, scope_id, result);
}, },
WebGPUMsg::CleanDevice { WebGPUMsg::CleanDevice {

View file

@ -1,2 +1,2 @@
[canvas_complex_rgba8unorm_store.https.html] [canvas_complex_rgba8unorm_store.https.html]
expected: CRASH expected: FAIL

View file

@ -1,2 +1,2 @@
[canvas_image_rendering.https.html] [canvas_image_rendering.https.html]
expected: CRASH expected: TIMEOUT