Skip to content
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

Webview2 without subprocess #2490

Closed
zeltrax00 opened this issue May 30, 2022 · 2 comments
Closed

Webview2 without subprocess #2490

zeltrax00 opened this issue May 30, 2022 · 2 comments
Assignees

Comments

@zeltrax00
Copy link

Can I create a webview2 application by C++ without creating webview2 subprocess like this ? I see Office 365 apps like Word, Excel,... using Webview2 but I don't see they have any webview2 subprocess
image

@aluhrs13
Copy link
Contributor

Hi @zeltrax00 - WebView2 follows the Chromium process model, which consists of a browser process, some utility processes, and some renderer processes. There's a good overview of why that's the case here. There is a command-line option that will use a single process --single-process that might work, but is entirely unsupported for WebView2, and only exists in Chromium for development purposes and shouldn't be used in production scenarios. There's no way to host WebView2 in-proc like previous Windows WebView components.

If you're seeing Office applications using WebView2 without msedgewebview2.exe child processes, you might be hitting a Task Manager bug in some versions of Windows 10 where child processes might not get parented properly. SysInternals Process Explorer should show correct parenting 100% of the time, and the latest Win10 and Win11 versions have the bug I mentioned fixed.

Can I ask why you're interested in not creating the sub-processes?

@aluhrs13
Copy link
Contributor

Closing due to inactivity.

@aluhrs13 aluhrs13 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants