WKWebsiteDataStore remove methods don't properly delete cookies
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Jul 2015 20:56:56 +0000 (20:56 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Jul 2015 20:56:56 +0000 (20:56 +0000)
commitb3770b2d9b1999dba91f801e59a97141bcc9e3b5
treea557d2613126b20a5454ebeb1f20a3164bb1c940
parent6d14d28e7d2607edeacb9ae0ac7a9b4c237244e5
WKWebsiteDataStore remove methods don't properly delete cookies
https://bugs.webkit.org/show_bug.cgi?id=147333
rdar://problem/21948230

Reviewed by Tim Horton.

If there are multiple cookies for a single domain, make sure to delete all of them
and not just the first one we find.

Fix this by keeping a mapping from domain to a list of cookies.

* platform/network/mac/CookieJarMac.mm:
(WebCore::deleteCookiesForHostnames):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@187448 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/network/mac/CookieJarMac.mm