Right now the DatabaseLoaderCallback::execute() needs to grovel through IDB structures via transactions to gather the database schema (object stores, indexes). Once http://webkit.org/b/88467 lands this can be replaced with a call to idbDatabase->metadata() which will provide everything via simple structs.
I can take this on, actually - I need to do it to unblock another patch I have in the works so I'll have this change locally already.
Created attachment 149109 [details] Patch
Comment on attachment 149109 [details] Patch Dropping review bit - won't pass until the dependent bug lands.
Created attachment 149125 [details] Patch
This can land now - vsevik@ - who'd be a good reviewer?
Comment on attachment 149125 [details] Patch I am :)
Comment on attachment 149125 [details] Patch Clearing flags on attachment: 149125 Committed r121117: <http://trac.webkit.org/changeset/121117>
All reviewed patches have been landed. Closing bug.