RESOLVED FIXED35763
Remove the now-redundant Settings fields for the Database
https://bugs.webkit.org/show_bug.cgi?id=35763
Summary Remove the now-redundant Settings fields for the Database
Eric U.
Reported 2010-03-04 13:22:12 PST
Bug 35310 finished adding the new interface; I then removed the last use of the old interface from Chromium. It's now save to remove the Database fields from Settings and WebSettings.
Attachments
Patch (9.73 KB, patch)
2010-03-04 13:30 PST, Eric U.
no flags
Patch (9.76 KB, patch)
2010-03-04 15:58 PST, Eric U.
no flags
Fix the build fix. (1.58 KB, patch)
2010-03-08 16:34 PST, Eric U.
no flags
Patch (1.66 KB, patch)
2010-03-09 13:38 PST, Eric U.
no flags
Eric U.
Comment 1 2010-03-04 13:30:20 PST
Eric Seidel (no email)
Comment 2 2010-03-04 13:56:04 PST
Comment on attachment 50049 [details] Patch Patch fails to apply: Failed to run "['/mnt/git/webkit-chromium-ews/WebKitTools/Scripts/svn-apply', '--force']" exit_code: 1 patching file WebCore/ChangeLog Hunk #1 succeeded at 1 with fuzz 3. patching file WebCore/WebCore.base.exp patching file WebCore/page/Settings.cpp Hunk #1 succeeded at 73 (offset 1 line). Hunk #2 FAILED at 261. 1 out of 2 hunks FAILED -- saving rejects to file WebCore/page/Settings.cpp.rej Ok. Why do we have a separate way of managing database settings?
Eric U.
Comment 3 2010-03-04 14:05:37 PST
I'll update to fix the patch; my code was a few days old. The Settings object isn't available to Workers. In order to get the Database accessible to Workers, the enable bit has to live somewhere that they can get at it. WebSockets implemented their enable bit this way [as a static class member], so I followed that model.
Eric U.
Comment 4 2010-03-04 15:58:16 PST
WebKit Commit Bot
Comment 5 2010-03-08 08:42:04 PST
Comment on attachment 50060 [details] Patch Clearing flags on attachment: 50060 Committed r55666: <http://trac.webkit.org/changeset/55666>
WebKit Commit Bot
Comment 6 2010-03-08 08:42:09 PST
All reviewed patches have been landed. Closing bug.
Daniel Bates
Comment 7 2010-03-08 09:07:24 PST
This change broke the Windows bots. Looks like the corresponding Windows changes were not landed.
Daniel Bates
Comment 8 2010-03-08 09:33:31 PST
Applied corresponding change to file WebView.cpp to fix the Windows build. Committed fix in r55667 <http://trac.webkit.org/changeset/55667>.
Eric U.
Comment 9 2010-03-08 16:34:45 PST
Created attachment 50265 [details] Fix the build fix. That build fix patch fixed the compile, but failed to restore the path by which the database enable preference can actually enable the database API. This puts the right call in.
Eric U.
Comment 10 2010-03-08 16:35:23 PST
Reopening for the new fix patch.
David Levin
Comment 11 2010-03-08 21:16:31 PST
Comment on attachment 50265 [details] Fix the build fix. > Index: WebKit/win/ChangeLog > +2010-03-08 Eric Uhrhane <ericu@chromium.org> > + > + Reviewed by NOBODY (OOPS!). > + > + The build fix for my patch on bug #35763 wasn't quite right--it removed > + the call entirely, instead of replacing it with the new API. This adds > + the call to Database::setIsAvailable. Please add a bug link here. > Index: WebKit/win/WebView.cpp > + hr = prefsPrivate->databasesEnabled(&enabled); > + if (FAILED(hr)) > + return hr; > + Database::setIsAvailable(enabled); > + This needs an appropriate if ENABLE guard.
Eric U.
Comment 12 2010-03-09 13:38:46 PST
Eric U.
Comment 13 2010-03-09 13:40:11 PST
(In reply to comment #11) > (From update of attachment 50265 [details]) > > Index: WebKit/win/ChangeLog > > +2010-03-08 Eric Uhrhane <ericu@chromium.org> > > + > > + Reviewed by NOBODY (OOPS!). > > + > > + The build fix for my patch on bug #35763 wasn't quite right--it removed > > + the call entirely, instead of replacing it with the new API. This adds > > + the call to Database::setIsAvailable. > > Please add a bug link here. Done. > > Index: WebKit/win/WebView.cpp > > + hr = prefsPrivate->databasesEnabled(&enabled); > > + if (FAILED(hr)) > > + return hr; > > + Database::setIsAvailable(enabled); > > + > > This needs an appropriate if ENABLE guard. Done, and I now have a post-it on my Mac's monitor reminding me to check for that every time.
WebKit Commit Bot
Comment 14 2010-03-10 14:44:08 PST
Comment on attachment 50342 [details] Patch Clearing flags on attachment: 50342 Committed r55809: <http://trac.webkit.org/changeset/55809>
WebKit Commit Bot
Comment 15 2010-03-10 14:44:14 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.