http://bugs.winehq.org/show_bug.cgi?id=58921
Bug ID: 58921 Summary: WebView2 does not work with Windows version setting 8.1 or newer Product: Wine Version: 10.18 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: felixhaedicke@web.de Distribution: ---
Created attachment 79605 --> http://bugs.winehq.org/attachment.cgi?id=79605 webview.log (log created by WebView2)
For testing WebView2, I am using my "SimpleWebView2Browser", see https://github.com/felixhaedicke/SimpleWebView2Browser for source code and binaries.
Steps to get it running on a fresh wineprefix: * Install WebView2 runtime using the "Evergreen Standalone Installer" for x64 from Inst https://developer.microsoft.com/en-us/microsoft-edge/webview2 * Set Windows version to Windows 7 or 8. * Use my "SimpleWebView2Browser" binaries from https://github.com/felixhaedicke/SimpleWebView2Browser/releases/tag/v0.1
It is sufficient to set the Windows version for "msedgewebview2.exe" (which is part of the WebView2 runtime): wine reg add "HKEY_CURRENT_USER\Software\Wine\AppDefaults\msedgewebview2.exe" /v Version /t REG_SZ /d win8
It does not work with Windows version set to 8.1, 10 or 11.
The problem is probably that WebView2 tries to use the DirectComposition API on Windows 8.1 or newer. Message in the WebView2 debug log: DCompositionCreateDevice failed: Not implemented. (0x80004001)
The attached WebView2 debug log was captured using the WebView2 logging functions, which can be enabled using the WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS environment variable.
Command line used to start the browser process, and to capture the attached logs:
WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS="--enable-logging --v=1 --log-file=c:/webview.log" wine SimpleWebView2Browser.exe 2> wine-output.txt
http://bugs.winehq.org/show_bug.cgi?id=58921
--- Comment #1 from Felix Hädicke felixhaedicke@web.de --- Created attachment 79606 --> http://bugs.winehq.org/attachment.cgi?id=79606 Wine console output
The wine console output also shows messages about failed DCompositionCreateDevice calls:
01f0:fixme:dcomp:DCompositionCreateDevice3 00007FFFFEF26DB0, {5f4633fe-1e08-4cb8-8c75-ce24333f5602}, 00007FFFFE8FE428. 0314:fixme:dcomp:DCompositionCreateDevice 0000000000000000, {c37ea93a-e7aa-450d-b16f-9746cb0407f3}, 00007FC440FAE420.
http://bugs.winehq.org/show_bug.cgi?id=58921
Eric Pouech eric.pouech@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eric.pouech@gmail.com
--- Comment #2 from Eric Pouech eric.pouech@gmail.com --- There will be lots of missing bits to support native webview2.
As chromium decides to use or not features based on Windows OS version, to get things properly working you'll need a bunch of things done: For Win10: - direct composition as you noted, - also sandboxing (including lots of bits in token & acl management) - GPU support - basically most of the FIXMEs from your log are a starting point - ...
So I don't expect this to be resolved before a long time given the list of missing features.
Side note: The list above comes for testing chromium builds, not native webview2/ I'm not sure EULA for installing native webview2 permits to run it on Wine, so I will not test it myself.