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

[Problem/Bug]: Window.print doesn't work on fixed runtime unless ALL APPLICATION PACKAGES permissions set #4790

Open
edahlberg opened this issue Sep 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@edahlberg
Copy link

What happened?

The documentation for Webview2 says the following:

https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/distribution?tabs=dotnetcsharp#details-about-the-fixed-version-runtime-distribution-mode

On Windows 10 devices, starting with Fixed Version 120, developers of unpackaged Win32 applications using Fixed Version are required to run the following commands, for Fixed Version to continue to work. This is due to a security improvement in v120 to run the Renderer process inside the App Container. This change doesn't affect Windows 11 devices, the older runtime, or packaged apps.

However, window.print shows up empty on Windows 11 if these permissions are not set.

Importance

Low. My app is not very affected, or this only affects development.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

128.0.2739.63

SDK Version

1.0.2739.15

Framework

WPF

Operating System

Windows 11

OS Version

22631.4037

Repro steps

  1. Add a fixed webview to WPF application on windows 11 without setting the permissions

  2. try to print any page

  3. print preview does not load and the print doesn't work if fixed runtime is used

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Regression in newer Runtime

Last working version (if regression)

123.x.x.x

@edahlberg edahlberg added the bug Something isn't working label Sep 4, 2024
@github-actions github-actions bot added the regression Something used to work but doesn't anymore label Sep 4, 2024
@victorhuangwq victorhuangwq removed the regression Something used to work but doesn't anymore label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants
@victorhuangwq @vbryh-msft @lflores-ms @edahlberg and others