pub trait OnDestroy: Fn(&WebView) -> bool + Send + 'static { }
Triggered when the window is being destroyed.