Skip to content

Commit da3d0b8

Browse files
authored
Update code snippet id
1 parent b828e15 commit da3d0b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ void PopulateContextMenu(CoreWebView2ContextMenuRequestedEventArgs args,
852852

853853
void AuthenticationCmdExecuted(object target, ExecutedRoutedEventArgs e)
854854
{
855-
// <BasicAuthenticationRequested-Short>
855+
// <BasicAuthenticationRequested>
856856
webView.CoreWebView2.BasicAuthenticationRequested += delegate (object sender, CoreWebView2BasicAuthenticationRequestedEventArgs args)
857857
{
858858
// [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Demo credentials in https://authenticationtest.com")]
@@ -861,7 +861,7 @@ void AuthenticationCmdExecuted(object target, ExecutedRoutedEventArgs e)
861861
args.Response.Password = "pass";
862862
};
863863
webView.CoreWebView2.Navigate("https://authenticationtest.com/HTTPAuth");
864-
// </BasicAuthenticationRequested-Short>
864+
// </BasicAuthenticationRequested>
865865
}
866866

867867
private bool _isFaviconChanged = false;

0 commit comments

Comments
 (0)