IndexedDB does not call back IDBFactory.open within Web Worker

Issue #175648 • Assigned to Ali A.

Details

Created
May 6, 2014
Privacy
This issue is public.
Found in build #
0.0011
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

URL = https://nolanlawson.s3.amazonaws.com/pouchdb/www/20140502/worker-fix/e365740e13eb405555d869cec475dd77f05287aa/tests/test.html?grep=worker

URL:

Repro Steps:

Here’s an example of a working IDBFactory request with a Web Worker: http://bl.ocks.org/nolanlawson/863e464f3025d7199a1f . It should show “Output is: successfully opened db.” This works on IE11 and Chrome 34, although it doesn’t work on Firefox 29 (since FF apparently doesn’t support IndexedDB within Web Workers at all).

Now, here’s an example of a non-working IDBFactory request with a Web Worker: https://nolanlawson.s3.amazonaws.com/pouchdb/www/20140502/worker-fix/e365740e13eb405555d869cec475dd77f05287aa/tests/test.html?grep=worker

Notice that the second test completes( i.e. it shows 100% in the upper-right-hand corner) in Chrome 34 but not in IE 11. Stepping through in the debugger, I see that the “open” request created at line 2675 of the following script is never called back on its onsuccess or onerror functions: https://nolanlawson.s3.amazonaws.com/pouchdb/www/20140502/worker-fix/e365740e13eb405555d869cec475dd77f05287aa/dist/pouchdb-nightly.js .

FWIW, I also tried adding an onblocked callback to that request, but still got radio silence.

Expected Results:

IDBFactory.open should have its onsuccess callback invoked inside of a Web Worker.

Actual Results:

 

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “IPBS P.”

      Changed Assigned To from “IPBS P.” to “Bruce M.”

      Changed Assigned To to “Kamen M.”

      Changed Assigned To from “Kamen M.” to “Venkat K.”

      Changed Assigned To from “Venkat K.” to “Shawn P.”

      Changed Assigned To from “Shawn P.” to “Kelvin J.”

      Changed Steps to Reproduce

      Changed Status to “Confirmed”

      Changed Assigned To from “Kelvin J.” to “Shawn P.”

      Changed Status from “Confirmed” to “Won’t fix”

      Changed Assigned To to “Ali A.”

      Changed Status from “Won’t fix”

      Changed Steps to Reproduce

      Changed Status to “Needs root cause”

      Changed Status from “Needs root cause”

    You need to sign in to your Microsoft account to add a comment.

    Sign in