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]: Edge webview doesn't fallback to default implementation of showing certificate dialog if clientcertificaterequested event is subscribed #4403

Closed
RSN1907 opened this issue Feb 29, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@RSN1907
Copy link

RSN1907 commented Feb 29, 2024

What happened?

In our WPF Application which uses Edge webview ,we subscribe to ClientCertificateRequested Event and its implmentation is as below

void CoreWebView2_ClientCertificateRequested(object sender, CoreWebView2ClientCertificateRequestedEventArgs e)
{
e.Handled = false;

       IReadOnlyList<CoreWebView2ClientCertificate> certificateList = e.MutuallyTrustedCertificates;

}
Once this is implemented though handled is set to false ,its not falling back to default certification prompt
However if the event is not subscribed it would show certificate prompt and work as usual

Importance

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

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

122.0.2365.52

SDK Version

1.0.2277.86

Framework

WPF

Operating System

Windows 10

OS Version

22H2

Repro steps

In our WPF Application which uses Edge webview ,we subscribe to ClientCertificateRequested Event and its implmentation is as below

void CoreWebView2_ClientCertificateRequested(object sender, CoreWebView2ClientCertificateRequestedEventArgs e)
{
e.Handled = false;

       IReadOnlyList<CoreWebView2ClientCertificate> certificateList = e.MutuallyTrustedCertificates;

}
Once this is implemented though handled is set to false ,its not falling back to default certification prompt
However if the event is not subscribed it would show certificate prompt and work as usual

I would like to know why default implementation is not getting called even though handled is set to false

If any logs need to be collected kindly let me know

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

@RSN1907 RSN1907 added the bug Something isn't working label Feb 29, 2024
@RSN1907 RSN1907 closed this as completed Mar 4, 2024
@RSN1907
Copy link
Author

RSN1907 commented Mar 4, 2024

Issue is resolved

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

2 participants