indexedDB's onupgradeneeded event is not firiring on Android Chrome

136 views
Skip to first unread message

Ron Cozad

unread,
Mar 8, 2016, 10:27:48 AM3/8/16
to Chromium-discuss
I am using Android 4.4.2 on a HP Slate 21 Pro build/KOT49H
 
Chrome 48.0.2564.95 (Official Build) (32 bit)
 
onupgradeneeded fires on Windows 7 Chrome version 44 using the same code
 
If this is the wrong forum, sorry, I was directed here.
 
Any ideas?

Ron Cozad

unread,
Mar 8, 2016, 10:45:31 AM3/8/16
to Chromium-discuss
Just in case, I also tried setVersion but that reported back, not a function.
If I try to create object Stores inside the onsuccess of open the db, it complains I am not in a version change.
Any workaround ideas?

PhistucK

unread,
Mar 8, 2016, 11:25:16 AM3/8/16
to rcoz...@gmail.com, Chromium-discuss
First, you better always test two editions of Chrome with the same version (and not 48 versus 44).
Second, Chrome 49 was just released - see if the problem reproduces there.
Third, if you still experience issues, you can search crbug.com for an existing issue and star it. If you cannot find one, file a new issue using the "New issue" link on the same page.
Please, do not add a "+1" or "Me too" or "Confirmed" (or similar) comment. It just wastes the time of Chrome engineers and sends unnecessary e-mails to all of the people who starred the issue.

It is always good to attach a small amount of code that reproduces the issue (as little code as possible will make it easier to investigate).

You can reply with a link to the found or created issue and might get triaged (and fixed) faster.

Thank you.


PhistucK

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.

Christian Biesinger

unread,
Mar 8, 2016, 11:32:02 AM3/8/16
to rcoz...@gmail.com, Chromium-discuss
It is best to use http://crbug.com/new for bug reports like this. If you respond here with the bug number we can make sure the right people will see it. Thanks!

-Christian

--

Ron Cozad

unread,
Mar 8, 2016, 2:11:30 PM3/8/16
to Chromium-discuss, rcoz...@gmail.com
In trying to simplify the code to submit, I found my issue.
 
I have a request.deleteDatabase("dbname") to occasionally start over by uncommenting this line.  I had moved it just before I started testing on the Slate 21.  I moved it to a bad spot.
 
I moved it before an indexedDB open for read (testing to see if any data was there).  Since this was a read, I did not bother with an onupgradeneeded.  The database was already created before I made it to my open for creation code which had onupgradeneeded.
 
I moved it back and all is well.
 
Sorry to have wasted your time, but I do appreciate it, because it led me to my blunder.
 
Thanks
Reply all
Reply to author
Forward
0 new messages