mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Use ExtendableMessageEvent for messageerror in service workers
This commit is contained in:
parent
b1bd409047
commit
95ddcf5d4d
3 changed files with 27 additions and 8 deletions
|
@ -19,7 +19,6 @@ use crate::dom::extendableevent::ExtendableEvent;
|
|||
use crate::dom::extendablemessageevent::ExtendableMessageEvent;
|
||||
use crate::dom::globalscope::GlobalScope;
|
||||
use crate::dom::identityhub::Identities;
|
||||
use crate::dom::messageevent::MessageEvent;
|
||||
use crate::dom::worker::TrustedWorkerAddress;
|
||||
use crate::dom::workerglobalscope::WorkerGlobalScope;
|
||||
use crate::fetch::load_whole_resource;
|
||||
|
@ -446,7 +445,7 @@ impl ServiceWorkerGlobalScope {
|
|||
ports,
|
||||
);
|
||||
} else {
|
||||
MessageEvent::dispatch_error(target, scope.upcast());
|
||||
ExtendableMessageEvent::dispatch_error(target, scope.upcast());
|
||||
}
|
||||
},
|
||||
CommonWorker(WorkerScriptMsg::Common(msg)) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue