lxn / walk

A Windows GUI toolkit for the Go Programming Language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is the browser kernel for walk webview,chrome or others

passerbyo opened this issue · comments

What is the browser kernel for walk webview,chrome or others

The webview widget uses the native windows browser which still (hidden underneath) is the original internet explorer.
In .NET there is a webview2 which uses a more modern browser kernel but that has not been ported to GOlang WALK (yet).

Hello, I found out that WebView is the old explorer engine. Is it possible to update it to the new WebView2?

Yes and No,
Yes because it is possible (though a lot of work, of which most is testing),
No because the existing webview ALSO can display directories (it is both a file browser and a web browser).

If someone would like to do the work then duly take into account that it must be implement as a "webview2" and not "webview".
Meaning that the existing code and functionality must remain present (I need them) and the new webview will be a SECOND webview rather than replace the existing one.
This is the only way it can be done without affecting existing programs (.NET did it also like that).

However, as long as you don't need rounded corner of fancy javascript, the old webview works fine (e.g. for emails).
But it is not able to render most of the currently existing websites (throws tons of javascript errors).

Thank you for your answer. I just finished the compilation of the official sample wxwidget "WebView" and I found out that it is the old webview. So you are right, WebView 2 should be another widget, different from WebView. But it would be very useful to develop a web application with java script. And somewhere in wxwidget documentation there is a hint about enabling WebView 2 . But i am not clever enough to follow it.