mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Introduce GlobalScope::constellation_chan
This commit is contained in:
parent
ae3763e7b3
commit
f789e73fd2
14 changed files with 79 additions and 60 deletions
|
@ -89,8 +89,11 @@ impl ServiceWorkerMethods for ServiceWorker {
|
|||
// Step 7
|
||||
let data = try!(StructuredCloneData::write(cx, message));
|
||||
let msg_vec = DOMMessage(data.move_to_arraybuffer());
|
||||
let _ = self.global().r().constellation_chan().send(ScriptMsg::ForwardDOMMessage(msg_vec,
|
||||
self.scope_url.clone()));
|
||||
let _ =
|
||||
self.global().r()
|
||||
.as_global_scope()
|
||||
.constellation_chan()
|
||||
.send(ScriptMsg::ForwardDOMMessage(msg_vec, self.scope_url.clone()));
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue