[Curl] sort out MS vs Seconds confusion in Cookies
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Mar 2020 14:09:40 +0000 (14:09 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Mar 2020 14:09:40 +0000 (14:09 +0000)
commit1827c17b2d460cd4204664d2b20d4677c70e537a
tree20b4775f15000810c5a4d60a484fc23077f5d8d4
parentadc37d82dba7695d584c298bb1002824c430207c
[Curl] sort out MS vs Seconds confusion in Cookies
https://bugs.webkit.org/show_bug.cgi?id=208964

Patch by Pavel Feldman <pavel.feldman@gmail.com> on 2020-03-12
Reviewed by Don Olmstead.

Making sure curl parser is storing expires using millis in the code. Using consistent time
functions around the changed code.

* platform/network/curl/CookieJarDB.cpp:
(WebCore::CookieJarDB::searchCookies):
(WebCore::CookieJarDB::getAllCookies):
(WebCore::CookieJarDB::setCookie):
* platform/network/curl/CookieUtil.cpp:
(WebCore::CookieUtil::parseExpiresMS):
(WebCore::CookieUtil::parseCookieAttributes):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@258325 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/network/curl/CookieJarDB.cpp
Source/WebCore/platform/network/curl/CookieUtil.cpp