localstorage-empty-database.html 816 B

12345678910111213141516
  1. <html>
  2. <body>
  3. <script type="text/javascript">
  4. var x = localStorage.getItem('foo');
  5. </script>
  6. <p>This page has called <code>localStorage.getItem('foo')</code>.
  7. Since no data has been stored, no database file should have been created.</p>
  8. <p>If you click <a href="javascript:localStorage.setItem('bar', 'baz');">here</a>, data will be stored, and a database file should be created.</p>
  9. <p>If you click <a href="javascript:localStorage.clear();">here</a>, the local storage will be cleared, and the database file should be gone when the browser is closed.</p>
  10. <p>(This is for <a href="https://bugs.webkit.org/show_bug.cgi?id=40301">https://bugs.webkit.org/show_bug.cgi?id=40301</a>
  11. and <a href="https://bugs.webkit.org/show_bug.cgi?id=40767">https://bugs.webkit.org/show_bug.cgi?id=40767</a>.)</p>
  12. </body>
  13. </html>