Skip to content

[Problem/Bug]: CreateFindOptions now throws (in non-stable runtimes) #5305

@pushkin-

Description

@pushkin-

What happened?

When I call Environment.CreateFindOptions(), the sample WinForms app is now throwing:

"Unable to cast to Microsoft.Web.WebView2.Core.Raw.ICoreWebView2ExperimentalEnvironment

(version 140.0.3427.0 canary)

In my particular app, when I call that

Importance

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

Runtime Channel

Prerelease (Edge Canary/Dev/Beta)

Runtime Version

139.0.3405.21 beta

SDK Version

3116.0

Framework

Winforms

Operating System

Windows 11

OS Version

10.0.26100.4343

Repro steps

modify the sample WinForms app to intercept Ctrl+F, and call:

var findOptions = wv2.CoreWebView2.Environment.CreateFindOptions();

see that it crashes

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Regression in newer Runtime

Last working version (if regression)

138

Metadata

Metadata

Labels

bugSomething isn't workingregressionSomething used to work but doesn't anymoretrackedWe are tracking this work internally.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions