RESOLVED FIXED 188617
[Curl] Bug fix on deleting cookies when Max-Age is set to zero.
https://bugs.webkit.org/show_bug.cgi?id=188617
Summary [Curl] Bug fix on deleting cookies when Max-Age is set to zero.
Basuke Suzuki
Reported 2018-08-15 13:44:54 PDT
Those cookies whose Max-Age is set to zero must be erased, but there's a bug in the condition.
Attachments
PATCH (3.63 KB, patch)
2018-08-15 13:48 PDT, Basuke Suzuki
achristensen: review-
fix (3.81 KB, patch)
2018-08-16 17:03 PDT, Basuke Suzuki
no flags
Basuke Suzuki
Comment 1 2018-08-15 13:48:56 PDT
Alex Christensen
Comment 2 2018-08-16 16:25:34 PDT
Comment on attachment 347206 [details] PATCH View in context: https://bugs.webkit.org/attachment.cgi?id=347206&action=review > Source/WebCore/platform/network/curl/CookieJarDB.cpp:352 > + if (!cookie.session && expires <= ::time(0)) There are better ways of getting the current time in WebCore, like MonotonicTime::now
Basuke Suzuki
Comment 3 2018-08-16 16:30:16 PDT
Comment on attachment 347206 [details] PATCH View in context: https://bugs.webkit.org/attachment.cgi?id=347206&action=review >> Source/WebCore/platform/network/curl/CookieJarDB.cpp:352 >> + if (!cookie.session && expires <= ::time(0)) > > There are better ways of getting the current time in WebCore, like MonotonicTime::now Alright. Thanks!
Basuke Suzuki
Comment 4 2018-08-16 17:03:59 PDT
WebKit Commit Bot
Comment 5 2018-08-16 17:50:22 PDT
Comment on attachment 347326 [details] fix Clearing flags on attachment: 347326 Committed r234973: <https://trac.webkit.org/changeset/234973>
WebKit Commit Bot
Comment 6 2018-08-16 17:50:24 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7 2018-08-16 17:52:26 PDT
Note You need to log in before you can comment on or make changes to this bug.