コード例 #1
0
 private void frameLoadDelegate_DidFailProvisionalLoadWithError(WebView WebView, IWebError error, IWebFrame frame)
 {
     // ignore an "error" where the page loading is interrupted by a policy change when dowloading a file
     if (!(frame == WebView.mainFrame() && error.Domain() == "WebKitErrorDomain" && error.code() == 102))
     {
         Error(this, new WebKitBrowserErrorEventArgs(error.localizedDescription()));
     }
 }
コード例 #2
0
ファイル: WebKitBrowser.cs プロジェクト: vebin/webkit2.net
 private void frameLoadDelegate_DidFailProvisionalLoadWithError(WebView WebView, IWebError error, IWebFrame frame)
 {
     // ignore an "error" where the page loading is interrupted by a policy change when dowloading a file
     if (!(frame == WebView.mainFrame() && error.Domain() == "WebKitErrorDomain" && error.code() == 102))
     {
         Error(this, new WebKitBrowserErrorEventArgs(error.localizedDescription())); 
     }
 }