New issue
Advanced search Search tips

Issue 747671 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 732524
Owner: ----
Closed: Sep 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug


Participants' hotlists:
Hotlist-1


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
 
Untitled.jpg
295 KB View Download
Labels: Needs-Triage-M59

Comment 3 by jsb...@chromium.org, Jul 24 2017

Components: -Blink>Storage Blink>Storage>IndexedDB

Comment 4 by jsb...@chromium.org, Jul 24 2017

Labels: Needs-Feedback
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

Comment 5 by konr...@gmail.com, Jul 25 2017

I think this may be used to reproduce and demonstrate the problem.

https://thimbleprojects.org/konrud/299413
Project Member

Comment 6 by sheriffbot@chromium.org, Jul 25 2017

Cc: jsb...@chromium.org
Labels: -Needs-Feedback
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

Comment 7 by jsb...@chromium.org, Jul 25 2017

Labels: Needs-Feedback
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);

Comment 8 by jsb...@chromium.org, Sep 25 2017

Mergedinto: 732524
Status: Duplicate (was: Unconfirmed)
Given the lack of feedback, I'm going to tentatively duplicate this against issue 732524

Sign in to add a comment