mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
remove the ability to request for the title
This commit is contained in:
parent
82f65f6eb3
commit
88686690e5
7 changed files with 5 additions and 59 deletions
|
@ -919,10 +919,6 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
|
|||
.map(|pipeline| pipeline.top_level_browsing_context_id);
|
||||
let _ = resp_chan.send(focus_browsing_context);
|
||||
}
|
||||
FromCompositorMsg::GetPipelineTitle(pipeline_id) => {
|
||||
debug!("constellation got get-pipeline-title message");
|
||||
self.handle_get_pipeline_title_msg(pipeline_id);
|
||||
}
|
||||
FromCompositorMsg::KeyEvent(ch, key, state, modifiers) => {
|
||||
debug!("constellation got key event message");
|
||||
self.handle_key_msg(ch, key, state, modifiers);
|
||||
|
@ -1916,16 +1912,6 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
|
|||
}
|
||||
}
|
||||
|
||||
fn handle_get_pipeline_title_msg(&mut self, pipeline_id: PipelineId) {
|
||||
let result = match self.pipelines.get(&pipeline_id) {
|
||||
None => return self.compositor_proxy.send(ToCompositorMsg::ChangePageTitle(pipeline_id, None)),
|
||||
Some(pipeline) => pipeline.event_loop.send(ConstellationControlMsg::GetTitle(pipeline_id)),
|
||||
};
|
||||
if let Err(e) = result {
|
||||
self.handle_send_error(pipeline_id, e);
|
||||
}
|
||||
}
|
||||
|
||||
fn handle_post_message_msg(&mut self,
|
||||
browsing_context_id: BrowsingContextId,
|
||||
origin: Option<ImmutableOrigin>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue