fix: clear webview document on stop

This commit is contained in:
peachismomo
2026-09-23 02:57:56 +08:00
parent d5962052ca
commit 4b41bf7f4f
+2
View File
@@ -71,6 +71,8 @@ void WebMediaController::Stop()
if (m_webview) {
m_webview->RunScript("if(typeof stopCameraRefresh==='function') stopCameraRefresh();");
m_webview->Stop();
m_webview->SetPage("", "about:blank");
m_webview->ClearHistory();
}
m_url.clear();
}