WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
117156
[GTK] Migrate WebKitFaviconDatabase to GTask
https://bugs.webkit.org/show_bug.cgi?id=117156
Summary
[GTK] Migrate WebKitFaviconDatabase to GTask
Carlos Garcia Campos
Reported
2013-06-03 09:09:20 PDT
Migrate WebKitFaviconDatabase to GTask
Attachments
Patch
(8.95 KB, patch)
2013-06-03 09:12 PDT
,
Carlos Garcia Campos
gustavo
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2013-06-03 09:12:44 PDT
Created
attachment 203601
[details]
Patch
WebKit Commit Bot
Comment 2
2013-06-03 09:14:12 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See
http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Gustavo Noronha (kov)
Comment 3
2013-06-17 20:44:27 PDT
Comment on
attachment 203601
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=203601&action=review
> Source/WebKit2/UIProcess/API/gtk/WebKitFaviconDatabase.cpp:-172 > - if (!g_cancellable_is_cancelled(data->cancellable.get())) {
I just couldn't figure out why you're no longer checking for cancellation here, the rest looks good to me.
Carlos Garcia Campos
Comment 4
2013-06-18 00:00:53 PDT
(In reply to
comment #3
)
> (From update of
attachment 203601
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=203601&action=review
> > > Source/WebKit2/UIProcess/API/gtk/WebKitFaviconDatabase.cpp:-172 > > - if (!g_cancellable_is_cancelled(data->cancellable.get())) { > > I just couldn't figure out why you're no longer checking for cancellation here, the rest looks good to me.
That was to make sure that cancelled error had precedence over any other error, so we just completed the operation with g_simple_async_result_complete(). With GTask cancellation always has precedence (when check_cancellable is TRUE, which is the default), because all g_task_propagate methods first check if task was cancelled, so here we ignore the cancelled and complete the operation either with g_task_return_error or g_task_return_boolean, in both cases cancellation will be handled in the finish method when calling g_task_propagate_boolean.
Gustavo Noronha (kov)
Comment 5
2013-06-18 05:29:55 PDT
Comment on
attachment 203601
[details]
Patch OK, yay GTask doing the right thing =)
Carlos Garcia Campos
Comment 6
2013-06-19 00:25:16 PDT
Committed
r151725
: <
http://trac.webkit.org/changeset/151725
>
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