-
-
Notifications
You must be signed in to change notification settings - Fork 577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edge WebView2 support #521
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Any chance of this being done any time soon? |
@kvnxiao I am not working on this actively at the moment, not sure when I have time and energy to devote to this issue. However, if you want to see this implemented fast, consider sponsoring this issue. |
Suppose if I have time to contribute to this, what exactly is required to get WebView2 up and running together? |
|
WebView2 uses Chromium so it should not be buggy in any way; it would be as buggy as using chromium on other platforms. |
@kvnxiao Are you going to work on this? |
@dmwyatt I don't think I have the time to contribute on this one, but just simply wanted to ask for a clear roadmap in case someone else would like to work on it. |
webview2 latest |
users should install webview2 runtime |
I have created a working first draft with Edge Webview2 support. I am new to Github, so let me know if I break any protocols. |
@sbbosco I tested on Windows10 20H2, it works well, maybe you can send PR to this repo. |
Hi!, Just out of curiosity. With this approach, could we ship the DLLS with the app when freezing it with pyinstaller, so that we can use that webview, but if the final user does not have it, it can still work? Thanks! |
Edge 87 stable will release end of 2020 which includes webview2, soon user don't need to install webview2 runtime or Edge insider version. |
@martinlombana There are 2 separate requirements.
If you distributed a frozen program, you would probably need to check if the runtime is installed and programmatically install a runtime if it is not present. Hopefully the comment from @tshemeng about Edge 87 will save us from this extra requirement in most cases. Here's a link about app distribution https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/distribution |
@sbbosco Sorry I check webview2 docs again, it does not say Edge 87 contains webview2. |
@sbbosco Good work. Please create a PR. I was hoping to refactor the whole winforms.py for better handling of different renderers. With four different renderers it is becoming unruly. Alas I don't have a Windows development machine at the moment. |
@r0x0r Please take a look here and let me know if this is what you had in mind for refactoring. Any suggestions are welcome. https://github.com/sbbosco/pywebview/tree/edge-webview2/webview/platforms |
@sbbosco yes, this would do for now. |
@r0x0r Thanks. I will create a PR after the noblock changes are stable. |
@sbbosco The noblock might take a while, as there is no solution in sight. So no need to wait for it. |
Chromium support merged into master. Many thanks to @sbbosco for the outstanding work. I have updated documentation here https://github.com/r0x0r/pywebview/blob/master/docs/guide/renderer.md Feel free to test this and report your findings. I will release a new pywebview version next week or so. |
I need a help for noblock |
@r0x0r You may want to consider updating the I have an app that works well with |
@sbbosco Could you create a PR? |
You can specify a data dir that would be embedded with the exe in pyinstaller |
@r0x0r , thanks. But how do I instruct pywebview to load the runtime from that exact folder? |
You can use pyinstaller's |
Thanks, I can't seem to be able to locate the example that you are referring to, in order to set the executable to be used by Pywebview. Could you point me to it? Thanks in advance. |
@martinlombana Check this Line 44 in c2d3435
|
Windows Forms support for Chromium based WebView2 has finally arrived. Implementing this for pywebview should be doable at this point.
https://docs.microsoft.com/en-us/microsoft-edge/webview2/gettingstarted/winforms
The text was updated successfully, but these errors were encountered: