Add wxWebView::GetBackendVersionInfo()

Allows to get the WebView backend version if available
Currently implemented for IE, Edge and webkit2.
This commit is contained in:
Tobias Taschner
2021-02-03 18:05:41 +01:00
parent 489afb3336
commit 0d82348328
11 changed files with 74 additions and 0 deletions

View File

@@ -398,6 +398,7 @@ WebFrame::WebFrame(const wxString& url) :
}
#endif
m_browser = wxWebView::New(backend);
wxLogMessage("Backend version: %s", wxWebView::GetBackendVersionInfo(backend).ToString());
#ifdef __WXMAC__
// With WKWebView handlers need to be registered before creation
m_browser->RegisterHandler(wxSharedPtr<wxWebViewHandler>(new wxWebViewArchiveHandler("wxfs")));