協議處理程序html
public class HttpsHandler : IProtocolHandler { //This method should provide the response for the specified request public IUrlResponse Handle(IUrlRequest request) { string htmlContent = "Request Url: " + request.Url + "\n"; return new UrlResponse(Encoding.UTF8.GetBytes(htmlContent)); } }
而後能夠爲特定的BrowserContext安裝此自定義協議處理程序:ide
browser.Context.ProtocolService.Register("https", new HttpsHandler());
BrowserPreferences.CrashDumpDir屬性spa
BrowserPreferences.CrashDumpDir是一個可讀寫的靜態屬性,可用於指定用於存儲生成的Chromium崩潰轉儲的目錄。 應該在代碼中建立任何Browser或BrowserView實例以前指定此屬性。設計
修復htm