mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Update devtools page titles.
This commit is contained in:
parent
b53ce5c79a
commit
02ce6188aa
4 changed files with 48 additions and 0 deletions
|
@ -347,6 +347,13 @@ impl BrowsingContextActor {
|
|||
stream.write_json_packet(&msg);
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn title_changed(&self, pipeline: PipelineId, title: String) {
|
||||
if pipeline != self.active_pipeline.get() {
|
||||
return;
|
||||
}
|
||||
*self.title.borrow_mut() = title;
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue