Changeset 138568 in webkit


Ignore:
Timestamp:
Dec 29, 2012 11:10:56 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] Cookies with an IP domain are not being loaded properly into memory
https://bugs.webkit.org/show_bug.cgi?id=105859

PR 271597

Patch by Otto Derek Cheung <otcheung@rim.com> on 2012-12-29
Reviewed by George Staikos.

The isIP flag isn't persistented in the database. We need to check it
again when we load it into memory.

  • platform/blackberry/CookieManager.cpp:

(WebCore::CookieManager::getBackingStoreCookies):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r138567 r138568  
     12012-12-29  Otto Derek Cheung  <otcheung@rim.com>
     2
     3        [BlackBerry] Cookies with an IP domain are not being loaded properly into memory
     4        https://bugs.webkit.org/show_bug.cgi?id=105859
     5
     6        PR 271597
     7
     8        Reviewed by George Staikos.
     9
     10        The isIP flag isn't persistented in the database. We need to check it
     11        again when we load it into memory.
     12
     13        * platform/blackberry/CookieManager.cpp:
     14        (WebCore::CookieManager::getBackingStoreCookies):
     15
    1162012-12-29  Kondapally Kalyan  <kalyan.kondapally@intel.com>
    217
  • trunk/Source/WebCore/platform/blackberry/CookieManager.cpp

    r137940 r138568  
    536536    for (size_t i = 0; i < cookies.size(); ++i) {
    537537        ParsedCookie* newCookie = cookies[i];
     538
     539        // The IP flag is not persisted in the database.
     540        if (BlackBerry::Platform::isIPAddress(newCookie->domain().utf8().data()))
     541            newCookie->setDomain(newCookie->domain(), true);
     542
    538543        checkAndTreatCookie(newCookie, BackingStoreCookieEntry);
    539544    }
Note: See TracChangeset for help on using the changeset viewer.