public async Task WebViewIsNotDisposedWhenUnloaded() { await Run(async() => { var taskCompletionSource = new TaskCompletionSource <bool>(); var view = new WebViewControl.WebView(); view.Disposed += delegate { taskCompletionSource.SetResult(true); }; var window = new Window { Title = CurrentTestName, Content = view }; try { window.Show(); window.Content = null; Assert.IsFalse(taskCompletionSource.Task.IsCompleted); window.Content = view; window.Close(); var disposed = await taskCompletionSource.Task; Assert.IsTrue(disposed); } finally { window.Close(); } }); }
public CefMenuHandler(WebView webView) { OwnerWebView = webView; }
public CefLifeSpanHandler(WebView webView) { OwnerWebView = webView; }
public InternalFocusHandler(WebView webView) { OwnerWebView = webView; }
public CefDownloadHandler(WebView owner) { OwnerWebView = owner; }
public CefRequestHandler(WebView webView) { OwnerWebView = webView; }
public InternalRequestHandler(WebView webView) { OwnerWebView = webView; ResourceRequestHandler = new InternalResourceRequestHandler(OwnerWebView); }
public JavascriptExecutor(WebView ownerWebView) { OwnerWebView = ownerWebView; OwnerWebView.JavascriptContextCreated += OnJavascriptContextCreated; OwnerWebView.RenderProcessCrashed += StopFlush; }