Update devtools page titles.

This commit is contained in:
Josh Matthews 2020-04-28 15:40:16 -04:00
parent b53ce5c79a
commit 02ce6188aa
4 changed files with 48 additions and 0 deletions

View file

@ -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)]