Exemple #1
0
 protected virtual void OnNavigateError(WebBrowserNavigateErrorEventArgs e)
 {
     if (NavigateError != null)
     {
         NavigateError(this, e);
     }
 }
Exemple #2
0
 /// <summary>
 /// Nothrow guarantee.
 /// </summary>
 void Browser_NavigateError(object sender, WebBrowserNavigateErrorEventArgs e)
 {
     Program.AssertOnEventThread();
     navigationError = true;
     try
     {
         log.DebugFormat("Navigate error ({0}): {1}", e.StatusCode, e.Url);
         if ((e.StatusCode == 401 || e.StatusCode == 403))
         {
             log.Warn("Clearing secret and re-prompting, since we've seen a 401/403.");
             BrowserState.BrowserCredentials creds = lastBrowserState.Credentials;
             bool persisting = creds == null ? true : creds.PersistCredentials;
             CompleteClearSecret(lastBrowserState);
             TriggerGetSecret(lastBrowserState);
         }
     }
     catch (Exception exn)
     {
         log.Error(exn, exn);
     }
 }
Exemple #3
0
 protected virtual void OnNavigateError(WebBrowserNavigateErrorEventArgs e)
 {
     if (NavigateError != null)
         NavigateError(this, e);
 }