WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
155045
indexNames is empty inside 2+ upgradeneeded event transaction
https://bugs.webkit.org/show_bug.cgi?id=155045
Summary
indexNames is empty inside 2+ upgradeneeded event transaction
Dmitry Sorin
Reported
2016-03-04 14:11:44 PST
Created
attachment 273039
[details]
bug description 1. First, open database with version 1 2. Create object store there 3. Add some indexes, ensure that objectStore.indexNames contains all indexes 4. Close database 5. Open this database again with version 2 Actual result: objectStore.indexNames is empty inside upgradeneeded event transaction Expected result: objectStore.indexNames should contain all indexes created on step 3
Attachments
bug description
(997 bytes, text/javascript)
2016-03-04 14:11 PST
,
Dmitry Sorin
no flags
Details
Clickable test case
(1.44 KB, text/html)
2016-03-05 13:49 PST
,
Brady Eidson
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Dmitry Sorin
Comment 1
2016-03-04 14:12:08 PST
Btw, this bug cn be reproduced on mobile Safari too
Brady Eidson
Comment 2
2016-03-05 13:15:18 PST
At this point, testing IndexedDB with Safari 9 (or MobileSafari on iOS 9) is mostly irrelevant. Does this happen with a WebKit nightly?
Brady Eidson
Comment 3
2016-03-05 13:49:41 PST
Created
attachment 273096
[details]
Clickable test case Previously attached test case was just some javascript. This is an HTML file ready to run, both in the browser or in WebKitTestRunner. This works perfectly fine for me on Safari 9's WebKit and in ToT WebKit.
Brady Eidson
Comment 4
2016-03-05 13:50:50 PST
Closing as WORKSFORME: Please try the attached HTML test case to see if it works for you. If not, please try again in a WebKit nightly.
Dmitry Sorin
Comment 5
2016-03-07 01:10:43 PST
Made a bit of research. First: this problem is reproduced in "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11) AppleWebKit/601.1.56 (KHTML, like Gecko) Version/9.0 Safari/601.1.56" and not reproduced on my local "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/601.4.4 (KHTML, like Gecko) Version/9.0.3 Safari/601.4.4". Second, createIndex replaces one of the indexes in 2+ versionchange transaction.
Dmitry Sorin
Comment 6
2016-03-07 01:11:54 PST
Probably it's better to create another bug for it.
Dmitry Sorin
Comment 7
2016-03-07 01:14:54 PST
UPD: and yes, it's not reproducable in Webkit nightly.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug