WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
111584
[soup] session cookies are not correctly reported in getRawCookies()
https://bugs.webkit.org/show_bug.cgi?id=111584
Summary
[soup] session cookies are not correctly reported in getRawCookies()
Chris Dumez
Reported
2013-03-06 08:20:34 PST
As per libsoup documentation, SoupCookie->expires is NULL for session cookies. However, the soup implementation for getRawCookies() does not check for NULL case before passing the value to soup_date_to_time_t(). This leads to the following warnings: (process:27280): libsoup-CRITICAL **: soup_date_to_time_t: assertion `date != NULL' failed We should also pass true for WebCore::Cookie's session argument if SoupCookie->expires is NULL. The current implementation reports the cookie as a session one if soup_cookie_jar_is_persistent(jar) returns true, which is inaccurate. Note that this does not currently affect Web Inspector as it ignores the session member in CookieParser.js WebInspector.Cookies.buildCookieProtocolObject(). Instead, Web Inspector currently uses the following rule: session: function() { // RFC 2965 suggests using Discard attribute to mark session cookies, but this does not seem to be widely used. // Check for absence of explicitly max-age or expiry date instead. return !("expires" in this._attributes || "max-age" in this._attributes); },
Attachments
Patch
(2.44 KB, patch)
2013-03-06 08:26 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Sergio Villar Senin
Comment 1
2013-03-06 08:25:18 PST
Yeah I planned to fix that some time ago but I end up forgetting about it.
Chris Dumez
Comment 2
2013-03-06 08:26:55 PST
Created
attachment 191757
[details]
Patch
WebKit Review Bot
Comment 3
2013-03-06 09:27:31 PST
Comment on
attachment 191757
[details]
Patch Clearing flags on attachment: 191757 Committed
r144936
: <
http://trac.webkit.org/changeset/144936
>
WebKit Review Bot
Comment 4
2013-03-06 09:27:35 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.
Top of Page
Format For Printing
XML
Clone This Bug