[Curl] Implement default cookie path handling correctly as outlined in RFC6265.
authorchris.reid@sony.com <chris.reid@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Aug 2018 22:03:29 +0000 (22:03 +0000)
committerchris.reid@sony.com <chris.reid@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Aug 2018 22:03:29 +0000 (22:03 +0000)
commitdca236c583de279d9157d3550824f76ba11e42bf
treee99a8bdded49ff2a1cf5a54af8e6edc7b8c385af
parent86dab824dbe8cfa212f23b90ecbad4d191ec5c1c
[Curl] Implement default cookie path handling correctly as outlined in RFC6265.
https://bugs.webkit.org/show_bug.cgi?id=188609

Reviewed by Alex Christensen.

Curl implementation of default cookie path was wrong so that some cookies cannot be accessible.
It should be generated as outlined in: https://tools.ietf.org/html/rfc6265#section-5.1.4

Source/WebCore:

Tests: http/tests/cookies/http-get-cookie-set-in-js.html

* platform/network/curl/CookieJarDB.cpp:
(WebCore::CookieJarDB::setCookie):
* platform/network/curl/CookieUtil.cpp:
(WebCore::CookieUtil::defaultPathForURL):
* platform/network/curl/CookieUtil.h:

LayoutTests:

* platform/wincairo/TestExpectations:
  - http/tests/cookies/http-get-cookie-set-in-js.html [ Pass ]

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