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
View File
@@ -114,6 +114,10 @@ impl SoftwareServoHost {
self.paint_webview(webview_id, false).map(|_| ())
}
pub fn close_webview(&mut self, webview_id: &WebViewId) -> bool {
self.webviews.remove(webview_id).is_some()
}
fn new_started(
size: ServoSurfaceSize,
config_dir: Option<PathBuf>,