mirror of
https://github.com/servo/servo.git
synced 2025-08-01 19:50:30 +01:00
parent
2b9590c5a5
commit
a95015b68a
3 changed files with 3 additions and 3 deletions
|
@ -413,7 +413,7 @@ fn run_server(sender: Sender<DevtoolsControlMsg>,
|
||||||
ids, script_sender, pageinfo))) =>
|
ids, script_sender, pageinfo))) =>
|
||||||
handle_new_global(actors.clone(), ids, script_sender, sender.clone(), &mut actor_pipelines,
|
handle_new_global(actors.clone(), ids, script_sender, sender.clone(), &mut actor_pipelines,
|
||||||
&mut actor_workers, pageinfo),
|
&mut actor_workers, pageinfo),
|
||||||
Ok(DevtoolsControlMsg::FromScript(ScriptToDevtoolsControlMsg::SendConsoleMessage(
|
Ok(DevtoolsControlMsg::FromScript(ScriptToDevtoolsControlMsg::ConsoleAPI(
|
||||||
id,
|
id,
|
||||||
console_message,
|
console_message,
|
||||||
worker_id))) =>
|
worker_id))) =>
|
||||||
|
|
|
@ -65,7 +65,7 @@ pub enum ScriptToDevtoolsControlMsg {
|
||||||
NewGlobal((PipelineId, Option<WorkerId>),
|
NewGlobal((PipelineId, Option<WorkerId>),
|
||||||
IpcSender<DevtoolScriptControlMsg>,
|
IpcSender<DevtoolScriptControlMsg>,
|
||||||
DevtoolsPageInfo),
|
DevtoolsPageInfo),
|
||||||
SendConsoleMessage(PipelineId, ConsoleMessage, Option<WorkerId>),
|
ConsoleAPI(PipelineId, ConsoleMessage, Option<WorkerId>),
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Serialized JS return values
|
/// Serialized JS return values
|
||||||
|
|
|
@ -100,7 +100,7 @@ fn propagate_console_msg(console: &&Console, console_message: ConsoleMessage) {
|
||||||
let global = console.global.root();
|
let global = console.global.root();
|
||||||
let pipelineId = global.r().pipeline();
|
let pipelineId = global.r().pipeline();
|
||||||
global.r().devtools_chan().as_ref().map(|chan| {
|
global.r().devtools_chan().as_ref().map(|chan| {
|
||||||
chan.send(ScriptToDevtoolsControlMsg::SendConsoleMessage(
|
chan.send(ScriptToDevtoolsControlMsg::ConsoleAPI(
|
||||||
pipelineId, console_message.clone(), global.r().get_worker_id())).unwrap();
|
pipelineId, console_message.clone(), global.r().get_worker_id())).unwrap();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue