title: webview- window.getselection() value is coming null
body: <p>I am working on an android application,which has a <code>WebView</code>. in this web view when i select the html text and perform any action the <code>window.getSelection()</code> is coming <code>null</code>.</p>
  
  <p>One javascript method <code>window.getSelection()</code> doesn't return the selected text from WebView every time. Many developers raised issues to Google for this but no solutions. <a href="https://issuetracker.google.com/issues/36925404" rel="nofollow noreferrer">https://issuetracker.google.com/issues/36925404</a></p>
  
  <p>I tried all possible option to get the selection object like </p>
  
  <p><code>window.getSelection(); window.doument.getSelection(); document.getSelection(); EReader.Selection.Range.getCurrentRange();</code></p>
  
  <p>Do you have any suggestions?</p>