Bug 145851

Summary: Web Inspector: IndexedDB data not showing for MDN example page
Product: WebKit Reporter: Jonathan Wells <jonowells>
Component: Web InspectorAssignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: burg, commit-queue, graouts, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix none

Description Jonathan Wells 2015-06-10 12:20:51 PDT
If you navigate to https://mdn.mozillademos.org/en-US/docs/Web/API/IndexedDB_API/Using_IndexedDB$samples/Full_IndexedDB_example?revision=798695, the IndexedDB data does not show in the Storage tab. This is likely a bug of some sort with this implementation because IndexedDB does work in other instances, for instance when you inspect Web Inspector.
Comment 1 Radar WebKit Bug Importer 2015-06-10 12:21:08 PDT
<rdar://problem/21325445>
Comment 2 Joseph Pecoraro 2015-06-11 13:44:54 PDT
[Error] Uncaught exception in inspector page while dispatching callback for command IndexedDB.requestDatabase
TypeError: this._addIndexedDatabaseWasAdded is not a function. (In 'this._addIndexedDatabaseWasAdded(event.data.indexedDatabase)', 'this._addIndexedDatabaseWasAdded' is undefined)

I'll take a quick look!
Comment 3 Joseph Pecoraro 2015-06-11 13:46:18 PDT
Looks like a simple typo. 

  _addIndexedDatabaseWasAdded => _addIndexedDatabase

Double checking some more.
Comment 4 Joseph Pecoraro 2015-06-11 13:49:22 PDT
Created attachment 254756 [details]
[PATCH] Proposed Fix
Comment 5 WebKit Commit Bot 2015-06-11 14:40:57 PDT
Comment on attachment 254756 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 254756

Committed r185476: <http://trac.webkit.org/changeset/185476>
Comment 6 WebKit Commit Bot 2015-06-11 14:41:01 PDT
All reviewed patches have been landed.  Closing bug.
Comment 7 Brian Burg 2015-06-11 17:42:32 PDT
Thanks for fixing that, Joe. Woulda done it myself, but #drburg