<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - IndexedDB is not available in a web worker"
   href="https://bugs.webkit.org/show_bug.cgi?id=149953">149953</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>IndexedDB is not available in a web worker
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Mac OS X 10.10
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>JavaScriptCore
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>nolan&#64;nolanlawson.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=262769" name="attach_262769" title="Reproducible test case">attachment 262769</a> <a href="attachment.cgi?id=262769&amp;action=edit" title="Reproducible test case">[details]</a></span>
Reproducible test case

Inside of a web worker, typeof indexedDB === 'undefined'. Also openDatabase is undefined, although I understand that that's working as intended [1].

I've attached a test case to reproduce. You can also see a live version here: <a href="http://bl.ocks.org/nolanlawson/raw/67a02c9395391dc0c11d/">http://bl.ocks.org/nolanlawson/raw/67a02c9395391dc0c11d/</a>

[1]: <a href="https://code.google.com/p/chromium/issues/detail?id=434740#c4">https://code.google.com/p/chromium/issues/detail?id=434740#c4</a>

Tested on WebKit Nightly, 10601.2.7.1, r190775.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>