[Webkit-unassigned] [Bug 177280] New: IndexedDB: indexing a sparse array wedges operations for that origin

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 20 16:02:01 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=177280

            Bug ID: 177280
           Summary: IndexedDB: indexing a sparse array wedges operations
                    for that origin
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jsbell at chromium.org

Created attachment 321383

  --> https://bugs.webkit.org/attachment.cgi?id=321383&action=review

minimized repro

Discovered running http://w3c-test.org/IndexedDB/keypath-exceptions.htm and minimized.

Repro:

* Load the attached webkit-wedged.html

Expected: put success
Actual: put error: UnknownError The operation failed for an unknown transient reason (e.g. out of memory).

* Reload

Expected: open succeeds and the test runs again
Actual: open never completes

* Open the same file in a new tab

Expected: Same behavior as after reload
Actual: put error

The test is creating an object store with an index:

  const store = db.createObjectStore('store');
  store.createIndex('index', 'a');

Then it tries to store an object with a sparse array as the index key:

  const array = [];
  array[1] = 1;
  const request = tx.objectStore('store').put({a: array}, 'key');

-- 
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/20170920/6c21a2c1/attachment.html>


More information about the webkit-unassigned mailing list