WebView2Feedback icon indicating copy to clipboard operation
WebView2Feedback copied to clipboard

[Problem/Bug]: WebView2 not running when uap10:TrustLevel="appContainer" is set for WinUI3 packaged app

Open kristianpinke opened this issue 5 months ago • 1 comments

What happened?

WebView2 is not showing on UI when following is configure in Package.appxmanifest:

<Package
  ...
  xmlns:uap10="http://schemas.microsoft.com/appx/manifest/uap/windows10/10"
  ...>
  ...
  <Applications>
    <Application Id="App"
      Executable="$targetnametoken$.exe"
      EntryPoint="Windows.PartialTrustApplication"
      uap10:TrustLevel="appContainer"
      uap10:RuntimeBehavior="packagedClassicApp">
...

Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

No response

SDK Version

1.0.2903.40

Framework

WinUI3/WinAppSDK

Operating System

Windows 11

OS Version

26100.4652

Repro steps

  1. Create WinUI Blank App (Packaged)
  2. Modify Package.appxmanifest setting values: EntryPoint="Windows.PartialTrustApplication" uap10:TrustLevel="appContainer" uap10:RuntimeBehavior="packagedClassicApp"
  3. Place WebView2 control on a page and set its Source

AR: Application runs without an error but no WebView2 control can be seen on UI

ER: Application runs and WebView2 is rendered on UI with

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Don't know

Last working version (if regression)

No response

kristianpinke avatar Jul 24 '25 11:07 kristianpinke

Any news regarding this bug ?

scadra avatar Nov 06 '25 08:11 scadra