mirror of
https://github.com/servo/servo.git
synced 2025-06-11 18:10:11 +00:00
Uniformise the various Msg types [#5882]
This commit is contained in:
parent
5b0c6c9d31
commit
b980278d90
9 changed files with 37 additions and 37 deletions
|
@ -133,8 +133,8 @@ impl Handler {
|
|||
|
||||
let (sender, reciever) = channel();
|
||||
let ConstellationChan(ref const_chan) = self.constellation_chan;
|
||||
const_chan.send(ConstellationMsg::WebDriverCommandMsg(pipeline_id,
|
||||
WebDriverScriptCommand::EvaluateJS(script, sender))).unwrap();
|
||||
const_chan.send(ConstellationMsg::WebDriverCommand(pipeline_id,
|
||||
WebDriverScriptCommand::EvaluateJS(script, sender))).unwrap();
|
||||
|
||||
match reciever.recv().unwrap() {
|
||||
Ok(value) => Ok(WebDriverResponse::Generic(ValueResponse::new(value.to_json()))),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue