Issue metadata
Sign in to add a comment
|
Index.get doesn't fire success/error events
Reported by
konr...@gmail.com,
Jul 22 2017
|
||||||||||||||||||||||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Steps to reproduce the problem:
1. set submit event on form element.
2. inside submit event open transaction -> open object store.
3. On the object store open index and request object by keyName
( var idbRequest = objStore.index(indexName).get(keyName); )
4. idbRequest.onsuccess = function(e) { }; (won't fire)
What is the expected behavior?
Success event should be fired.
https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/get
What went wrong?
onsuccess event should be fired, but instead idbRequest.result value is set with the result object but event doesn't fire.
Did this work before? N/A
Does this work in other browsers? N/A
Chrome version: 59.0.3071.115 Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version:
https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/get
,
Jul 24 2017
,
Jul 24 2017
,
Jul 24 2017
Please include a stand-alone example, e.g. an HTML page or jsfiddle that demonstrates the problem. Given the screenshot you provided you may be running into an interaction between IDB and the debugger: issue 732524
,
Jul 25 2017
I think this may be used to reproduce and demonstrate the problem. https://thimbleprojects.org/konrud/299413
,
Jul 25 2017
Thank you for providing more feedback. Adding requester "jsbell@chromium.org" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jul 25 2017
Works fine for me. I see success events firing when I click the button. Can you produce a more minimal repro which may narrow down the bug? You do have a bug in your script: output.textContent = JSON.stringify(e.result); should probably be: output.textContent = JSON.stringify(e.target.result);
,
Sep 25 2017
Given the lack of feedback, I'm going to tentatively duplicate this against issue 732524 |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by konr...@gmail.com
, Jul 22 2017