title: CefSharp.Wpf WebView cannot accept input and the link clicked no response
body: <p>I used CefSharp.Wpf in my application. version: 1.25.7.</p>
  
  <p>I hosted the webpage via CefSharp WebView. I can host my webpage in it. But the TextBox in the WebView cannot accept the input, and the hyperlink cannot response.</p>
  
  <p>Here is my code. I created a Wpf Usercontrol named WebPageOemViewer.</p>
  
  <p>Xaml:</p>
  
  <pre><code>&lt;UserControl x:Class="WebPageOemViewer"
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
               xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
               xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
               mc:Ignorable="d" 
               d:DesignHeight="300" 
               d:DesignWidth="300"&gt;
      &lt;Grid x:Name="MainZone"&gt;
  
      &lt;/Grid&gt;
  &lt;/UserControl&gt;
  </code></pre>
  
  <p>Code behind:</p>
  
  <pre><code>public partial class WebPageOemViewer : UserControl, IRequestHandler
      {
          private WebView browser;
  
          public WebPageOemViewer(string url)
          {
              InitializeComponent();
  
              CEF.Initialize(new Settings { LogSeverity = LogSeverity.Disable, PackLoadingDisabled = true });
  
              var browserSettings = new BrowserSettings { ApplicationCacheDisabled = true, PageCacheDisabled = true };
  
              browser = new WebView(string.Empty, browserSettings)
              {
                  Address = url,
                  RequestHandler = this,
                  Background = Brushes.White
              };
  
              browser.LoadCompleted += Browser_LoadCompleted;
  
              CEFJsObjectProcessor processor = new CEFJsObjectProcessor();
  
              browser.RegisterJsObject("CEFJsObject", processor);
  
              MainZone.Children.Insert(0, browser);
          }
  
          public void View(string url)
          {
              if (browser.IsBrowserInitialized)
              {
                  browser.Visibility = Visibility.Hidden;
  
                  browser.Load(url);
              }
          }
  
          public void Close()
          {
              browser.Dispose();
  
              MainZone.Children.Remove(browser);
          }
  
          public static void Shutdown()
          {
              Thread.Sleep(1000);
  
              if (CEF.IsInitialized)
              {
                  CEF.Shutdown();
              }
          }
  
          private void Browser_LoadCompleted(object sender, LoadCompletedEventArgs e)
          {
              Dispatcher.Invoke(new Action(() =&gt;
              {
                  browser.Visibility = Visibility.Visible;
              }));
          }
  
          #region IRequestHandler
  
          public bool GetAuthCredentials(IWebBrowser browser, bool isProxy, string host, int port, string realm, string scheme, ref string username, ref string password)
          {
              return false;
          }
  
          public bool GetDownloadHandler(IWebBrowser browser, string mimeType, string fileName, long contentLength, ref IDownloadHandler handler)
          {
              return true;
          }
  
          public bool OnBeforeBrowse(IWebBrowser browser, IRequest request, NavigationType naigationvType, bool isRedirect)
          {
              return false;
          }
  
          public bool OnBeforeResourceLoad(IWebBrowser browser, IRequestResponse requestResponse)
          {
              var headers = requestResponse.Request.GetHeaders();
  
              headers[Constants.Common.HttpHeaderFromKey] = Constants.Common.HttpHeaderFromValue;
  
              requestResponse.Request.SetHeaders(headers);
  
              return false;
          }
  
          public void OnResourceResponse(IWebBrowser browser, string url, int status, string statusText, string mimeType, System.Net.WebHeaderCollection headers)
          {
  
          }
  
          #endregion
  
          internal class CEFJsObjectProcessor
          {
              public event Action&lt;string&gt; Completed;
  
              private void CompletedInfo(string parameter)
              {
                  if (Completed != null)
                  {
                      Completed(parameter);
                  }
              }
          }
      }
  
  I host the Usercontrol in a Window named FillUserInfoWindow
  
  Xaml:
  
  &lt;Window x:Class="FillUserInfoWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:lcmb="clr-namespace:FClassroom.Presentation.Controls.MessageBoxes"
          Title="填写基础信息"
          WindowStartupLocation="CenterScreen"
          Width="770"
          Height="530"
          Loaded="FillUserInfoWindow_Loaded"&gt;
      &lt;Grid x:Name="MainClient"&gt;
  
      &lt;/Grid&gt;
  &lt;/Window&gt;
  
  Code behind:
  
  public partial class FillUserInfoWindow : Window
      {
          private WebPageOemViewer _viewer;
  
          private string _url = string.Empty;
  
          public FillUserInfoWindow()
          {
              InitializeComponent();
          }
  
          public FillUserInfoWindow(string url) 
          {
              _url = url;
  
              InitializeComponent();
          }
  
          private void FillUserInfoWindow_Loaded(object sender, RoutedEventArgs e)
          {
              Button CloseButton = this.Template.FindName("CloseButton", this) as Button;
  
              CloseButton.Click += CloseButton_Click;
  
              if(_viewer != null)
              {
                  _viewer.Visibility = Visibility.Visible;
              }
  
              LoadWebPage(_url);
          }
  
          private void CloseButton_Click(object sender, RoutedEventArgs e)
          {
              Shutdown();
  
              Close();
          }
  
          protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
          {
              DragMove();
  
              base.OnMouseLeftButtonDown(e);
          }
  
          private void LoadWebPage(string url)
          {
              Application.Current.Dispatcher.Invoke(new Action(() =&gt; {
  
                  if (_viewer == null)
                  {
                      _viewer = new WebPageOemViewer(url);
  
                      MainClient.Children.Insert(0, _viewer);
                  }
  
                  _viewer.Visibility = Visibility.Visible;
  
                  _viewer.View(url);
  
              }));
  
          }
  
          public void Shutdown()
          {
              if(_viewer != null)
              {
                  _viewer.Close();
              }
          }
      }
  </code></pre>
  
  <p>The webpage will shown in the Window. But the Search Box and hyperlinks no response. Also I tried the latest CefSharp.Wpf. Both cannot work.</p>
  
  <pre><code>string address = "http://www.bing.com";
  
  FillUserInfoWindow fills = new FillUserInfoWindow(address);
  
  fills.ShowDialog();
  </code></pre>
  
  <p>You can reproduce this issue by the code above. Thanks for your time.</p>