[BlackBerry] Cookies in private mode should not have access to public cookies
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Nov 2012 20:15:27 +0000 (20:15 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Nov 2012 20:15:27 +0000 (20:15 +0000)
commitd3e9effc42efed8744c9fad992d3edc8d1ebe31b
tree029ee44fa5ce43d7f06f5ea0e2d31288513f3a5e
parentc9a2615c12ba3de51b38b46d704c095693d4db66
[BlackBerry] Cookies in private mode should not have access to public cookies
https://bugs.webkit.org/show_bug.cgi?id=103649

Patch by Otto Derek Cheung <otcheung@rim.com> on 2012-11-29
Reviewed by Rob Buis.

PR 253983

When CookieManager switches back from public to private mode,
we will clear the cookie tree so the browser won't have access
to the public cookies.

Tested using browser.swlab.rim.net cookie tests and the steps in
the PR.

* platform/blackberry/CookieManager.cpp:
(WebCore::CookieManager::setPrivateMode):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@136148 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/blackberry/CookieManager.cpp