WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
91053
[EFL][WK2] Add Ewk class for cookie manager
https://bugs.webkit.org/show_bug.cgi?id=91053
Summary
[EFL][WK2] Add Ewk class for cookie manager
Chris Dumez
Reported
2012-07-12 00:01:50 PDT
We need a cookie manager Ewk class so that the client can manage cookies.
Attachments
Patch
(20.80 KB, patch)
2012-07-12 09:52 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(20.82 KB, patch)
2012-07-12 12:26 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(20.88 KB, patch)
2012-07-13 04:39 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(21.28 KB, patch)
2012-07-13 06:36 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(21.45 KB, patch)
2012-07-13 10:43 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(21.69 KB, patch)
2012-07-14 08:01 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2012-07-12 09:52:09 PDT
Created
attachment 151978
[details]
Patch
Raphael Kubo da Costa (:rakuco)
Comment 2
2012-07-12 12:15:40 PDT
Comment on
attachment 151978
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=151978&action=review
> Source/WebKit2/ChangeLog:12 > + The Ewk_Cookie_Manager instance can be retrieve
Nit: s/retrieve/retrieved/
> Source/WebKit2/UIProcess/API/efl/ewk_cookie_manager.cpp:78 > + g_return_if_fail(filename);
Isn't it better not to mix glib calls here?
Chris Dumez
Comment 3
2012-07-12 12:25:28 PDT
(In reply to
comment #2
)
> (From update of
attachment 151978
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=151978&action=review
> > > Source/WebKit2/ChangeLog:12 > > + The Ewk_Cookie_Manager instance can be retrieve > > Nit: s/retrieve/retrieved/ > > > Source/WebKit2/UIProcess/API/efl/ewk_cookie_manager.cpp:78 > > + g_return_if_fail(filename); > > Isn't it better not to mix glib calls here?
Good catches, thanks. I'll fix those right now :)
Chris Dumez
Comment 4
2012-07-12 12:26:26 PDT
Created
attachment 152021
[details]
Patch
Raphael Kubo da Costa (:rakuco)
Comment 5
2012-07-12 12:45:12 PDT
LGTM
Kenneth Rohde Christiansen
Comment 6
2012-07-12 20:18:38 PDT
I don't know much about cookies, but maybe Jocelyn would be kind to have a quick look.
Jocelyn Turcotte
Comment 7
2012-07-13 04:18:46 PDT
Comment on
attachment 152021
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=152021&action=review
Cookie-wise that looks fine to me, it basically just wraps the C API.
> Source/WebKit2/UIProcess/API/efl/ewk_cookie_manager.h:136 > +EAPI void ewk_cookie_manager_async_domains_with_cookies_get(Ewk_Cookie_Manager *manager, Ewk_Cookie_Manager_Async_Domains_Get_Cb callback, void *data);
Technically those are host names and not always domains since they can be specified as IP addresses. It's just a detail though.
Chris Dumez
Comment 8
2012-07-13 04:39:14 PDT
Created
attachment 152218
[details]
Patch Take Jocelyn's feedback into consideration, thanks for checking.
Chris Dumez
Comment 9
2012-07-13 06:36:56 PDT
Created
attachment 152245
[details]
Patch Make new ewk header installable.
Chris Dumez
Comment 10
2012-07-13 10:43:53 PDT
Created
attachment 152298
[details]
Patch Rebase on master.
Gyuyoung Kim
Comment 11
2012-07-14 05:41:37 PDT
Comment on
attachment 152298
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=152298&action=review
> Source/WebKit2/UIProcess/API/efl/ewk_context.cpp:46 > +Ewk_Cookie_Manager* ewk_context_cookie_manager_get(Ewk_Context* ewkContext)
Use *const* for _get().
> Source/WebKit2/UIProcess/API/efl/ewk_context.h:54 > + * @return Ewk_Cookie_Manager object instance.
I think you need to mention what is returned on failure.
> Source/WebKit2/UIProcess/API/efl/ewk_cookie_manager.cpp:83 > +void ewk_cookie_manager_accept_policy_set(Ewk_Cookie_Manager *manager, Ewk_Cookie_Accept_Policy policy)
Nit : Move '*' to type of variable side.
> Source/WebKit2/UIProcess/API/efl/ewk_cookie_manager.cpp:107 > +void ewk_cookie_manager_async_accept_policy_get(Ewk_Cookie_Manager* manager, Ewk_Cookie_Manager_Async_Policy_Get_Cb callback, void* data)
Use *const* keyword for _get().
> Source/WebKit2/UIProcess/API/efl/ewk_cookie_manager.cpp:109 > + EWK_COOKIE_MANAGER_WK_GET_OR_RETURN(manager, wkManager);
Do you really need to return wkManager in *void* return type ? There is no description related to return values in API description.
Chris Dumez
Comment 12
2012-07-14 07:21:14 PDT
Comment on
attachment 152298
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=152298&action=review
I'll fix the nits and reupload, thanks Gyuyoung for catching them.
>> Source/WebKit2/UIProcess/API/efl/ewk_cookie_manager.cpp:109 >> + EWK_COOKIE_MANAGER_WK_GET_OR_RETURN(manager, wkManager); > > Do you really need to return wkManager in *void* return type ? There is no description related to return values in API description.
This macro does not return the wkManager, there would be a third argument if there was a return value. wkManager is the name of the WK typed variable that is retrieved from manager.
Chris Dumez
Comment 13
2012-07-14 08:01:54 PDT
Created
attachment 152423
[details]
Patch Fix nits spotted by Gyuyoung.
Chris Dumez
Comment 14
2012-07-18 05:49:58 PDT
Kenneth, can you please land this patch?
Thiago Marcos P. Santos
Comment 15
2012-07-18 07:35:02 PDT
Are you writing unit tests in a separated bug?
WebKit Review Bot
Comment 16
2012-07-18 07:41:33 PDT
Comment on
attachment 152423
[details]
Patch Clearing flags on attachment: 152423 Committed
r122969
: <
http://trac.webkit.org/changeset/122969
>
WebKit Review Bot
Comment 17
2012-07-18 07:41:40 PDT
All reviewed patches have been landed. Closing bug.
Chris Dumez
Comment 18
2012-07-18 09:57:11 PDT
(In reply to
comment #15
)
> Are you writing unit tests in a separated bug?
Yes, I'm making good progress on it. I'll file the bug soon.
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