WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
82441
[GTK] Initial cookies API for WebKit2 GTK+ API
https://bugs.webkit.org/show_bug.cgi?id=82441
Summary
[GTK] Initial cookies API for WebKit2 GTK+ API
Carlos Garcia Campos
Reported
2012-03-28 02:44:26 PDT
Add an initial WebKitCookieManager object to be able to set the acceptance policy, get domains and delete cookies.
Attachments
Patch
(34.78 KB, patch)
2012-03-28 02:51 PDT
,
Carlos Garcia Campos
gustavo
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2012-03-28 02:51:27 PDT
Created
attachment 134247
[details]
Patch
WebKit Review Bot
Comment 2
2012-03-28 02:54:18 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
2012-04-11 05:15:13 PDT
Comment on
attachment 134247
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=134247&action=review
> Source/WebKit2/UIProcess/API/gtk/WebKitCookieManager.cpp:210 > + WKCookieManagerDeleteCookiesForHostname(manager->priv->wkCookieManager.get(), wkDomain.get());
Are the delete calls synchronous, or do we just not care about the result in this case? Also what about deleting a single cookie? That's something Ephy does today, something we want to keep supporting?
Carlos Garcia Campos
Comment 4
2012-04-11 06:24:09 PDT
(In reply to
comment #3
)
> (From update of
attachment 134247
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=134247&action=review
Thanks for reviewing!
> > Source/WebKit2/UIProcess/API/gtk/WebKitCookieManager.cpp:210 > > + WKCookieManagerDeleteCookiesForHostname(manager->priv->wkCookieManager.get(), wkDomain.get()); > > Are the delete calls synchronous, or do we just not care about the result in this case?
It's async, but the C API doesn't provide any result nor callback to be emitted when the operation finishes.
> Also what about deleting a single cookie?
Not supported by the C API.
> That's something Ephy does today, something we want to keep supporting?
As I commented in the mailing list when I proposed this API, it's not a common operation, people usually remove the cookies for a domain rather than a single cookie. However, since bugs #82081 and #82082 landed already, it's now possible to see the details of all cookies using the inspector, as well as deleting a single cookie. So, we could leave that as an advanced feature available through the inspector. Or we can add the API if you think it's really important. In any case, I think it would be batter to discuss about it in the mailing list, see this thread:
https://lists.webkit.org/pipermail/webkit-gtk/2012-March/001007.html
Carlos Garcia Campos
Comment 5
2012-04-11 09:15:05 PDT
Committed
r113870
: <
http://trac.webkit.org/changeset/113870
>
Gustavo Noronha (kov)
Comment 6
2012-04-16 08:32:39 PDT
I think using the inspector for these advanced features is a great idea, yeah =)
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