mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Implementing Close function and mark success tests.
This commit is contained in:
parent
701e678d8e
commit
d23ef77645
7 changed files with 29 additions and 19 deletions
|
@ -368,6 +368,12 @@ impl DedicatedWorkerGlobalScopeMethods for DedicatedWorkerGlobalScope {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-dedicatedworkerglobalscope-close
|
||||
fn Close(&self) {
|
||||
// Step 2
|
||||
self.upcast::<WorkerGlobalScope>().close();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#handler-dedicatedworkerglobalscope-onmessage
|
||||
event_handler!(message, GetOnmessage, SetOnmessage);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue