WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
106257
[WK2] Set IndexedDB database path in WK2
https://bugs.webkit.org/show_bug.cgi?id=106257
Summary
[WK2] Set IndexedDB database path in WK2
Michael Pruett
Reported
2013-01-07 14:51:06 PST
The IndexedDB database path should be initialized with the same directory used for web databases in WK2.
Attachments
Patch
(10.74 KB, patch)
2013-01-07 14:53 PST
,
Michael Pruett
sam
: review-
Details
Formatted Diff
Diff
Patch
(3.81 KB, patch)
2013-01-07 15:49 PST
,
Michael Pruett
benjamin
: review-
Details
Formatted Diff
Diff
Patch
(4.19 KB, patch)
2013-01-08 20:06 PST
,
Michael Pruett
benjamin
: review+
benjamin
: commit-queue-
Details
Formatted Diff
Diff
Patch
(4.22 KB, patch)
2013-01-09 14:57 PST
,
Michael Pruett
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Michael Pruett
Comment 1
2013-01-07 14:53:53 PST
Created
attachment 181570
[details]
Patch
Sam Weinig
Comment 2
2013-01-07 15:27:34 PST
Comment on
attachment 181570
[details]
Patch I don't understand the reason for this new manager. It seems like overkill to set a single string.
Michael Pruett
Comment 3
2013-01-07 15:49:44 PST
Created
attachment 181583
[details]
Patch I've eliminated the IndexedDB database manager.
Benjamin Poulain
Comment 4
2013-01-08 16:54:49 PST
Comment on
attachment 181583
[details]
Patch 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.
Michael Pruett
Comment 5
2013-01-08 20:06:55 PST
Created
attachment 181827
[details]
Patch I've moved the IndexedDB database directory from WebProcess to WebKeyValueStorageManager.
Benjamin Poulain
Comment 6
2013-01-09 14:39:33 PST
Comment on
attachment 181827
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=181827&action=review
It is not ideal but I think that looks okay to bootstrap IndexedDB. It will probably evolve separately.
> Source/WebKit2/WebProcess/WebPage/WebPageGroupProxy.cpp:71 > + WebKeyValueStorageManager& keyValueStorageManager = *WebProcess::shared().supplement<WebKeyValueStorageManager>(); > + m_pageGroup->groupSettings()->setIndexedDBDatabasePath(keyValueStorageManager.indexedDBDatabaseDirectory());
Please don't do the pointer-to-reference conversion. Just use the pointer directly.
Michael Pruett
Comment 7
2013-01-09 14:57:02 PST
Created
attachment 181992
[details]
Patch I've removed an unnecessary pointer-to-reference conversion.
Benjamin Poulain
Comment 8
2013-01-09 15:20:17 PST
Comment on
attachment 181992
[details]
Patch I assume you want to commit queue too? (you did not set cq?) I set cq- for now, I'll try to get Sam have an other look.
Benjamin Poulain
Comment 9
2013-01-10 13:26:18 PST
Comment on
attachment 181992
[details]
Patch No news from Sam. Let's go ahead.
WebKit Review Bot
Comment 10
2013-01-10 13:50:51 PST
Comment on
attachment 181992
[details]
Patch Clearing flags on attachment: 181992 Committed
r139364
: <
http://trac.webkit.org/changeset/139364
>
WebKit Review Bot
Comment 11
2013-01-10 13:50:56 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug