RESOLVED FIXED62638
IndexedDB: Use fileExists() first when checking if SQLite db exists
https://bugs.webkit.org/show_bug.cgi?id=62638
Summary IndexedDB: Use fileExists() first when checking if SQLite db exists
Hans Wennborg
Reported 2011-06-14 08:24:37 PDT
IndexedDB: Use fileExists() first when checking if SQLite db exists
Attachments
Patch (1.77 KB, patch)
2011-06-14 08:27 PDT, Hans Wennborg
tonyg: review+
Hans Wennborg
Comment 1 2011-06-14 08:27:25 PDT
Eric Seidel (no email)
Comment 2 2011-06-14 08:42:26 PDT
Comment on attachment 97123 [details] Patch So this is a redundant check? We were already checking this at a lower layer, but this is a nicer place to check? I'm confused. what happens if you call db.open() with a non-existant path?
Hans Wennborg
Comment 3 2011-06-14 08:47:56 PDT
(In reply to comment #2) > (From update of attachment 97123 [details]) > So this is a redundant check? We were already checking this at a lower layer, but this is a nicer place to check? I'm confused. what happens if you call db.open() with a non-existant path? It does a LOG_ERROR about failing to open the file, and returns false. It's not a big deal, but I'd like to get those errors removed from my console.
David Grogan
Comment 4 2011-06-14 14:44:47 PDT
LGTM
Hans Wennborg
Comment 5 2011-06-15 06:57:36 PDT
Note You need to log in before you can comment on or make changes to this bug.