[Webkit-unassigned] [Bug 172434] New: Crash when IndexedDB's getAll is used inside a Web Worker

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 21 18:23:44 PDT 2017


            Bug ID: 172434
           Summary: Crash when IndexedDB's getAll is used inside a Web
           Product: WebKit
           Version: Safari 10
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jdscheff at gmail.com

When using IndexedDB's getAll function inside a Web Worker, Safari crashes. It works outside of a web worker.

Here's some example code:

    const errorHandler = function (event) {

    console.log('Deleting database...');
    var deleteRequest = indexedDB.deleteDatabase('test');
    deleteRequest.onerror = deleteRequest.onblocked = deleteRequest.onsuccess = function () {
      console.log('Opening database...');
      var openRequest = indexedDB.open('test');
      openRequest.onerror = errorHandler;
      openRequest.onupgradeneeded = function () {
        var db = openRequest.result;
        db.createObjectStore('test', {keyPath: 'a'});
      openRequest.onsuccess = function (event) {
        var db = event.target.result;

        var tx = db.transaction('test', 'readwrite');
        tx.onerror = errorHandler;
        tx.onabort = errorHandler;
        tx.oncomplete = function () {
          console.log('All done!');

        var getAllRequest = tx.objectStore('test').getAll();
        getAllRequest.onerror = errorHandler;
        getAllRequest.onsuccess = function () {

Running that code outside of a Web Worker is no problem: http://dumbmatter.com/safari-getall-worker-bug/

But inside a Web Worker, it will crash Safari (but not Firefox or Chrome): http://dumbmatter.com/safari-getall-worker-bug/worker.html

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170522/00891b87/attachment.html>

More information about the webkit-unassigned mailing list