@Override
 public boolean onJsAlert(WebView view, String url, String message, JsResult result) {
   if (originalWebChromeClient != null) {
     return originalWebChromeClient.onJsAlert(view, url, message, result);
   }
   return true;
 }
 @Override
 public void handleJsAlert(String url, String message, JsResultReceiver receiver) {
   TraceEvent.begin();
   if (mWebChromeClient != null) {
     final JsPromptResult res = new JsPromptResultReceiverAdapter(receiver).getPromptResult();
     if (TRACE) Log.d(TAG, "onJsAlert");
     if (!mWebChromeClient.onJsAlert(mWebView, url, message, res)) {
       new JsDialogHelper(res, JsDialogHelper.ALERT, null, message, url)
           .showDialog(mWebView.getContext());
     }
   } else {
     receiver.cancel();
   }
   TraceEvent.end();
 }