[webkit-reviews] review denied: [Bug 106257] [WK2] Set IndexedDB database path in WK2 : [Attachment 181583] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 8 16:52:54 PST 2013


Benjamin Poulain <benjamin at webkit.org> has denied Michael Pruett
<michael at 68k.org>'s request for review:
Bug 106257: [WK2] Set IndexedDB database path in WK2
https://bugs.webkit.org/show_bug.cgi?id=106257

Attachment 181583: Patch
https://bugs.webkit.org/attachment.cgi?id=181583&action=review

------- Additional Comments from Benjamin Poulain <benjamin at webkit.org>
View in context: https://bugs.webkit.org/attachment.cgi?id=181583&action=review


What this is doing is basically create a global variable
m_indexedDBDatabasePath indirectly through WebProcess, and use that to
initialize IndexedDBDatabasePath.

We should probably pass the path down to WebPageGroupProxy instead of making it
global(?).

If you really want to make this global, please generalize
WebKeyValueStorageManager instead of extending WebProcess (if I am not
mistaken, IndexedDB is still a kind of key-value store).

> Source/WebKit2/WebProcess/WebProcess.h:183
> +#if ENABLE(INDEXED_DATABASE)
> +    String indexedDBDatabasePath() const { return m_indexedDBDatabasePath; }

> +#endif

The return type should be const String&.

> Source/WebKit2/WebProcess/WebProcess.h:366
> +#if ENABLE(INDEXED_DATABASE)
> +    String m_indexedDBDatabasePath;
> +#endif

This looks like the wrong place to store something like this, this is what
Settings are for.


More information about the webkit-reviews mailing list