Any thoughts on WebView2 support for Dolphin? #1156
cDemersMitSci
started this conversation in
Ideas
Replies: 2 comments 4 replies
-
There was a very similar thread on the VA Smalltalk forum in the past week. While the technology implementation is not transferable, the issues ought to be similar.
…On February 15, 2022 10:13:30 PM PST, Chris Demers ***@***.***> wrote:
With the end of support for Internet Explorer the IWebBrowser2 interface (which uses Internet Explorer) is already problematic, and will no doubt eventually be totally useless. I presume it won't work at all in Windows 11.
Has anyone looked at implementing WebView2 [https://docs.microsoft.com/en-us/microsoft-edge/webview2/get-started/win32](url) support for Dolphin? This looks like the intended replacement for IWebBrowser2 . It uses Microsoft Edge. Unfortunately it is more complicated to get working.
I found a type library in the NuGet package [https://www.nuget.org/packages/Microsoft.Web.WebView2](url) . I used the ActiveX component Wizard to create the classes. However, it looks like there is a bit of fancy dancing required to create an instance. It seems we need to call a CreateCoreWebView2EnvironmentWithOptions() function with a callback. I can't find an implementation of CreateCoreWebView2EnvironmentWithOptions method in the generated code.
Does anyone have any thoughts or suggestions about where to go with this? Is this reasonable to approach from Smalltalk, or should we consider using an external C++ helper? I have the example working in C++, but don't know how to translate this to Dolphin.
--
Reply to this email directly or view it on GitHub:
#1156
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I did look at this briefly ages ago, but it looked like it would be quite a lot of effort. You inspired me to look at it again, and it appears I was wrong: I just posted this from a Dolphin hosted Edge browser. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With the end of support for Internet Explorer the IWebBrowser2 interface (which uses Internet Explorer) is already problematic, and will no doubt eventually be totally useless. I presume it won't work at all in Windows 11.
Has anyone looked at implementing WebView2 https://docs.microsoft.com/en-us/microsoft-edge/webview2/get-started/win32 support for Dolphin? This looks like the intended replacement for IWebBrowser2 . It uses Microsoft Edge. Unfortunately it is more complicated to get working.
I found a type library in the NuGet package https://www.nuget.org/packages/Microsoft.Web.WebView2 . I used the ActiveX component Wizard to create the classes. However, it looks like there is a bit of fancy dancing required to create an instance. It seems we need to call a CreateCoreWebView2EnvironmentWithOptions() function with a callback. I can't find an implementation of CreateCoreWebView2EnvironmentWithOptions method in the generated code.
Does anyone have any thoughts or suggestions about where to go with this? Is this reasonable to approach from Smalltalk, or should we consider using an external C++ helper? I have the example working in C++, but don't know how to translate this to Dolphin.
Beta Was this translation helpful? Give feedback.
All reactions