Bug 128687

Summary: Web Inspector: Get InspectorIndexedDBAgent working
Product: WebKit Reporter: Timothy Hatcher <timothy>
Component: Web InspectorAssignee: Timothy Hatcher <timothy>
Status: RESOLVED FIXED    
Severity: Normal CC: alecflett, beidson, commit-queue, graouts, joepeck, jsbell, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch beidson: review+, beidson: commit-queue-

Description Timothy Hatcher 2014-02-12 14:04:49 PST
Make InspectorIndexedDBAgent work again.
Comment 1 Radar WebKit Bug Importer 2014-02-12 14:05:40 PST
<rdar://problem/16052081>
Comment 2 Timothy Hatcher 2014-02-12 14:59:35 PST
Created attachment 224010 [details]
Patch
Comment 3 Brady Eidson 2014-02-12 15:06:28 PST
Comment on attachment 224010 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=224010&action=review

> Source/WebKit2/WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.cpp:62
> +typedef HashMap<String, HashSet<String>> IDBRecentDatabaseNameMap;
> +
> +static IDBRecentDatabaseNameMap& sharedRecentDatabaseNameMap()

There's been a recent growing backlash against typedefs for maps like these.  I know there's some in the IDB code already.  Please don't add this new one  :)

> Source/WebKit2/WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.cpp:129
> +    ASSERT(!securityOriginIdentifier.isNull());

s/isNull/isEmpty/
Comment 4 Joseph Pecoraro 2014-02-12 15:25:10 PST
Comment on attachment 224010 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=224010&action=review

> Source/WebCore/ChangeLog:18
> +        Make DOMStringList.h private some WebKit2 can use it.

Typo: "some" => "so"

> Source/WebKit2/WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.cpp:100
> +        callbacks->onError(IDBDatabaseError::create(IDBDatabaseException::InvalidAccessError, "Document is not allowed to use Indexed Databases"));

Nit: You could use ASCIILiteral for the Error string.
Comment 5 Timothy Hatcher 2014-02-13 13:33:38 PST
http://trac.webkit.org/changeset/164051