⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 136148 in webkit


Ignore:
Timestamp:
Nov 29, 2012, 12:15:27 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

[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):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r136147 r136148  
     12012-11-29  Otto Derek Cheung  <otcheung@rim.com>
     2
     3        [BlackBerry] Cookies in private mode should not have access to public cookies
     4        https://bugs.webkit.org/show_bug.cgi?id=103649
     5
     6        Reviewed by Rob Buis.
     7
     8        PR 253983
     9
     10        When CookieManager switches back from public to private mode,
     11        we will clear the cookie tree so the browser won't have access
     12        to the public cookies.
     13
     14        Tested using browser.swlab.rim.net cookie tests and the steps in
     15        the PR.
     16
     17        * platform/blackberry/CookieManager.cpp:
     18        (WebCore::CookieManager::setPrivateMode):
     19
    1202012-11-29  Brent Fulgham  <bfulgham@gmail.com>
    221
  • trunk/Source/WebCore/platform/blackberry/CookieManager.cpp

    r133964 r136148  
    503503}
    504504
    505 void CookieManager::setPrivateMode(bool mode)
    506 {
    507     if (m_privateMode == mode)
     505void CookieManager::setPrivateMode(bool privateMode)
     506{
     507    if (m_privateMode == privateMode)
    508508        return;
    509509
    510     m_privateMode = mode;
    511     if (!mode) {
    512         removeAllCookies(DoNotRemoveFromBackingStore);
     510    m_privateMode = privateMode;
     511
     512    removeAllCookies(DoNotRemoveFromBackingStore);
     513
     514    // If we are switching back to public mode, reload the database to memory.
     515    if (!m_privateMode)
    513516        getBackingStoreCookies();
    514     }
    515517}
    516518
Note: See TracChangeset for help on using the changeset viewer.