MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2
https://aka.ms/webview2
453 stars 55 forks source link

WebView2 on Custom Desktop without Explorer.exe #960

Open dbuechel opened 3 years ago

dbuechel commented 3 years ago

We plan to integrate WebView2 into our lockdown application Safe Exam Browser. We're using CreateDesktop and its related functions to create and activate a custom desktop on which we run our main UI. In the process of implementing the WebView2 integration, we had to notice that it doesn't seem to work on our custom desktop where explorer.exe isn't running.

We have found quite an old issue on the topic (#48), but are not sure whether it still is accurate. Thus we'd first like to ask whether you could confirm that the incompatibility is still the case, and secondly, if it is, whether there are any plans to make WebView2 work on custom desktops?

AB#31945291

dbuechel commented 1 year ago

As to the issue itself: We're completely busy with other priorities at the moment, thus I am not able to try to (re-)investigate the issue at the moment. I'll at least quickly try to reproduce it using the repro app linked above, but if you find that the issue has been resolved and everything should work as expected now, then we could gladly resolve and close the issue.

For us, the window of opportunity to switch to another browser engine has either way gone for the time being, we're as already stated completely booked out with other priorities and furthermore have implemented various new functionalities using CEF / CefSharp for which we'd need to go back and again check whether everything that we need would work with WebView2. But resolving this issue would at least allow us to remove a workaround we currently have in the code.

saidkayed commented 1 year ago

Any Progress on this issue? we have an application that runs in kiosk mode, in admin mode, the webview2(blazorwebview) is blank when running in Admin mode. have anyone found a workaround to this issue?

mhdshameel commented 8 months ago

This issue is still present. I have tried launching explorer.exe in the custom desktop, even then webview did not load. To be specific the webview2 controller creation fails with E_INVALIDARGS. WV2 Environment creation is successful. Is there any progress on this or any workarounds?

dbuechel commented 8 months ago

Not to our knowledge; I presume there is a major blocker somewhere causing this issue to not be resolvable at all. That is in my humble opinion perfectly okay and understandable, but it would be nice to at least let people know instead of leaving them waiting in the dark. For our product, we will either way soon deprecate the functionality using WebView2 and then swiftly after that remove it entirely.

As an alternative, I can highly recommend CEF resp. CefSharp (see https://github.com/chromiumembedded/cef and https://github.com/cefsharp/CefSharp) which work perfectly fine on an empty, custom desktop without Windows Explorer running. And even though the developers of both projects most certainly only have a tiny fraction of the resources M$FT has, all issues and questions I ever had were resolved within (at most) a few weeks, normally even within a couple of days...

jeroenhabets commented 8 months ago

@victorhuangwq, @champnic, @david-risney, @yildirimcagri-msft, @kmahone tagging you so you are aware and can chime in here. As it's urgently needed see https://github.com/MicrosoftEdge/WebView2Feedback/issues/960#issuecomment-1997144345 :

...it would be nice to at least let people know instead of leaving them waiting in the dark. For our product, we will either way soon deprecate the functionality using WebView2 and then swiftly after that remove it entirely.