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

Webview locks after changing scale on a VSTO addin. #3804

Closed
Mark-IDB opened this issue Sep 21, 2023 · 5 comments
Closed

Webview locks after changing scale on a VSTO addin. #3804

Mark-IDB opened this issue Sep 21, 2023 · 5 comments
Assignees
Labels
bug Something isn't working tracked We are tracking this work internally.

Comments

@Mark-IDB
Copy link

Mark-IDB commented Sep 21, 2023

Description
This is a new bug for a bug which was reported earlier. (Issue 3163)

Webview2 runtime 117.0.2045.31 has been installed bij the automatic upgrade.

In issue 3163 there was a workaround suggested for the problem reported. (by adding a registry key for the dpi awareness) This worked for the issue.
But with the webview2 runtime update there are new problems:

Windows 10:
The original issue is now back and the workaround has no effect.

Windows 11:
The workaround seems to be a problem now. On some pc's webview2 locks if the scale is set to 125% and 100% works fine.
On other laptops the scale doesn't matter and webview2 locks allways. If you remove the workaround in the registry there is no problem anymore.

Version
SDK: 1.0.1774.30
Runtime: Evergreen (117.0.2045.31)
Framework: VSTO/Winforms .Net 4.8
OS: Win10, Win11 (different behaviour)

Regression
Was this working before but has regressed? yes
If yes, what version did this last work on? Previous webview2 runtime (before 117.0.2045.31)

Repro Steps
See steps in issue 3163 with included project example

AB#46658829

@Mark-IDB Mark-IDB added the bug Something isn't working label Sep 21, 2023
@champnic champnic added the tracked We are tracking this work internally. label Sep 22, 2023
@champnic
Copy link
Member

Thanks for the updated bug report, and sorry this is changing behavior again. I've added this to our backlog for the issue on Win10, it sounds like on Win11 the registry workaround can be removed.

@Mark-IDB
Copy link
Author

Mark-IDB commented Sep 22, 2023

it sounds like on Win11 the registry workaround can be removed.

Webview2 locks when this registry workaround is active... this is a problem for end-users who had to implement it previously.

@champnic
Copy link
Member

@Mark-IDB Can you see if adding the command line parameter "--edge-webview-no-dpi-workaround" resolved the issue?

@champnic
Copy link
Member

We are using #3692 to track this issue. We have a fix that you will be able to test out in Canary runtime tomorrow, and it should ship in the following 117 stable update next week.

@champnic champnic closed this as not planned Won't fix, can't repro, duplicate, stale Sep 28, 2023
@champnic
Copy link
Member

champnic commented Oct 2, 2023

Fix is available in Canary runtimes 119.0.2132.0+ and will be in 118 and 117 versions later this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

2 participants