- 
                Notifications
    
You must be signed in to change notification settings  - Fork 62
 
Description
What happened?
I have an application (app launcher) that needs to launch other applications. The app launcher starts the other application with a restricted token in order to protect certain directories that are only intended for the app launcher. When a launched application contains a webview2 component it is rendered blank since the renderer process seem to fail.
Importance
Blocking. My app's basic functions are not working due to this issue.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
127.0.2651.86
SDK Version
1.0.2792.45
Framework
WPF
Operating System
Windows 10
OS Version
10.0.19045 Build 19045
Repro steps
Reproduction Steps
Create two applications, one representing the "app launcher" and one representing the "app to launch" with a webview2 component.
- In the implementation of the app launcher call method 
CreateRestrictedTokenin order to create a restricted token. 
CreateRestrictedToken(
                    Token, // <-- current token
                    0,
                    0, IntPtr.Zero,
                    0, IntPtr.Zero,
                    (uint)restrictedSidStrings.Count, restrictedSidsPtr,  // <-- Provide some valid SID data to these two parameters
                    out SafeTokenHandle restrictedToken))- Then call method 
CreateProcessAsUserproviding the restricted token from step 1 
CreateProcessAsUser(
                    restrictedToken,
                    appToRun, // <--- path to application to launch with a restricted token
                    IntPtr.Zero,
                    IntPtr.Zero,
                    false,
                    0,
                    IntPtr.Zero,
                    startupFolder, 
                    ref startupInfo,
                    out PROCESS_INFORMATION processInfo))- Execute the app launcher to start the application to launch. No webview2 component is rendered.
 
Repros in Edge Browser
Yes, issue can be reproduced in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response