title: HTML localStorage is null on Android when using webview
body: <p>I am trying to use localstorage from my local web APP, here is the WebView initialization part:</p>
  
  <pre><code>static class MyWebView extends WebView
          {
              public MyWebView(Context context)
              {
              super(context);
  
              this.getSettings().setJavaScriptEnabled(true);
  
              //enable support for DOM Storage and Database
              this.getSettings().setDatabaseEnabled(true);
              this.getSettings().setDomStorageEnabled(true);
  
  
              String databasePath = context.getDir("database", Context.MODE_PRIVATE).getPath();
  
              this.getSettings().setDatabasePath(databasePath);
  
  
              this.setVerticalScrollbarOverlay(true);
          } }
  </code></pre>
  
  <p>and Here is the test app on JavaScript:</p>
  
  <pre><code>function testStorage() 
      {
          var storage = window.localStorage;
          if (storage) {
              try {
                  storage.setItem("name", "Hello World!"); //saves to the database, “key”, “value”
              } catch (e) {
  
                      alert(e.message); //data wasn’t successfully saved due to quota exceed so throw an error
              }
              document.write(storage.getItem("name")); //Hello World!
              storage.removeItem('name'); 
          }
          else {
              alert('Your browser does not support HTML5 localStorage. Because Storage is' + storage);
          }
      }
  </code></pre>
  
  <p>but the problem is that the localStorage is always null, I have checked the permissions and  created a WebChromeClient with </p>
  
  <pre><code>@Override
              public void onExceededDatabaseQuota(String url,
                      String databaseIdentifier,
                      long currentQuota,
                      long estimatedSize,
                      long totalUsedQuota,
                      WebStorage.QuotaUpdater quotaUpdater)
              {
                  quotaUpdater.updateQuota(estimatedSize * 2);
              }
  </code></pre>
  
  <p>which never gets called. 
  Anyone knows why?</p>
  
  <p>Thanks</p>