title: possible WebView OnCreateWindow to make popup window(Dialog style)? like android browser
body: <p>When I press a button with this code on ebay.com in my webview:</p>
  
  <p>html of button:<br></p>
  
  <pre><code>input id="addPicturesBtn" name="addPicturesBtn" type="button" value="Add pictures" class="button" onclick="ebay.run(this.id,'onclick');return false;" onkeydown="ebay.run(this.id,'onkeydown');return false;" title="Add pictures"
  </code></pre>
  
  <p>If this button is pressed inside my webview, It sends the new window from my webview to the android browser. But if the same button is pressed from within the android browser it pops up this cool dialog type popup window (see picture)</p>
  
  <p>I would like to open the popup style window on eBay like the browser does, if this button is pressed inside my webview.  So that it can be closed by the user to return them to my app behind it when they are done with the popup.</p>
  
  <p>Is that possible?</p>
  
  <p>Here is what I have so far:</p>
  
  <pre><code>   webChromeClient = new WebChromeClient() {
      @Override
      public boolean onCreateWindow(WebView view, boolean dialog, boolean userGesture, Message resultMsg) {
          WebView childView = new WebView(Ebay.this);
          final WebSettings settings = childView.getSettings();
          settings.setJavaScriptEnabled(true);
          childView.setWebChromeClient(this);
          childView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
          WebView.WebViewTransport transport = (WebView.WebViewTransport) resultMsg.obj;
          transport.setWebView(childView);
          resultMsg.sendToTarget();
  
      return true;
      }
          @Override
          public boolean onJsAlert(WebView view, String url, String message, JsResult result) {
              new AlertDialog.Builder(view.getContext()).setMessage(message).setCancelable(true).show();
              result.confirm();
              return true;
  
         }
  </code></pre>
  
  <p>Am I missing something?</p>
  
  <p>Here is a picture of the android browser popup (That I'm trying to get my webview to launch from the button on ebay.com):</p>
  
  <p><img src="https://i.stack.imgur.com/cFfWm.png" alt="popup"></p>