WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 50604
WebKit2: Need to set the location of the Databases directory when the WebProcess is initialized
https://bugs.webkit.org/show_bug.cgi?id=50604
Summary
WebKit2: Need to set the location of the Databases directory when the WebProc...
Jessie Berlin
Reported
2010-12-06 17:30:18 PST
In WebKit1, this is done in WebKitInitializeDatabasesIfNecessary in WebDatabaseManager.cpp/WebDatabaseManager.mm which is called from WebView::initWithFrame/WebView::_commonInitializationWithFrameName. Without this directory set, HTML5 Databases are effectively disabled. In WebKit2, this should probably be done in a call from the constructor of the WebProcess to a WebKit2 version of the WebKit1 WebDatabasesManager so that it is set by the time the WebProcess has finished being created.
Attachments
Patch
(16.02 KB, patch)
2010-12-06 18:04 PST
,
Jessie Berlin
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Jessie Berlin
Comment 1
2010-12-06 18:04:06 PST
Created
attachment 75767
[details]
Patch
WebKit Review Bot
Comment 2
2010-12-06 18:12:03 PST
Attachment 75767
[details]
did not pass style-queue: Failed to run "[u'git', u'reset', u'--hard', u'HEAD']" exit_code: 128 error: Could not write new index file. fatal: Could not reset index file to revision 'HEAD'. If any of these errors are false positives, please file a bug against check-webkit-style.
Darin Adler
Comment 3
2010-12-06 18:17:04 PST
Comment on
attachment 75767
[details]
Patch Seems OK. A bit inelegant that we have to call WebDatabaseManager::shared explicitly for its side effect, but it’s similar to our usual pattern for this sort of thing I suppose.
Jessie Berlin
Comment 4
2010-12-07 08:13:09 PST
(In reply to
comment #3
)
> (From update of
attachment 75767
[details]
) > Seems OK. A bit inelegant that we have to call WebDatabaseManager::shared explicitly for its side effect, but it’s similar to our usual pattern for this sort of thing I suppose.
I am not thrilled with it either, but decided at length that I like it better than the method used in WebKit1 (a standalone WebKitInitializeDatabasesIfNecessary function). Thanks for the review!
Jessie Berlin
Comment 5
2010-12-07 09:29:53 PST
Comment on
attachment 75767
[details]
Patch Committed in
r73449
http://trac.webkit.org/changeset/73449
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