Skip to content

[Problem/Bug]: window.chrome.webview is undefined #5449

@julio-guerrero-imprivata

Description

What happened?

The window.chrome.webview object is not available upon first page load, but appears after refreshing.

Importance

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

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

142.0.3595.80

SDK Version

1.0.3595.46

Framework

WPF

Operating System

Windows 11

OS Version

No response

Repro steps

During development, the error doesn't occur; however, if the build app is copied to a different Windows machine with a standard (not Admin) user, the problem is reproducible.

I managed to replicate the issue in a dummy app. The csproj file is using this config: <RuntimeIdentifier>win-x64</RuntimeIdentifier> and I copy the following build folder to reproduce the error: bin\x64\Debug\net8.0-windows\win-x64

I can share the project if you consider it's useful

Repros in Edge Browser

Yes, issue can be reproduced in the corresponding Edge version

Regression

Don't know

Last working version (if regression)

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions