Close Servo live sessions for removed tabs

This commit is contained in:
2026-05-13 02:41:54 -04:00
parent 74731d4faa
commit ac84a80d9e
11 changed files with 133 additions and 5 deletions
@@ -4,6 +4,10 @@ use super::BrowserCore;
use crate::CoreError;
impl BrowserCore {
pub fn open_tab_ids(&self) -> Vec<TabId> {
self.tabs.iter().map(|tab| tab.id().clone()).collect()
}
pub fn visible_content_tab_ids(&self) -> Result<Vec<TabId>, CoreError> {
let active_tab = self.active_tab()?;
let Some(split_id) = active_tab.split_id() else {