fix: Enter realm before dispatch activate (#30271)

* ref: https://github.com/servo/servo/issues/30141
This commit is contained in:
Li-Hsuan Hsieh 2023-09-02 04:16:53 +08:00 committed by GitHub
parent 89e42ffa5a
commit efa8433548
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -373,6 +373,7 @@ impl ServiceWorkerGlobalScope {
};
let scope = global.upcast::<WorkerGlobalScope>();
let _ac = enter_realm(&*scope);
unsafe {
// Handle interrupt requests