Changeset 52438 in webkit


Ignore:
Timestamp:
Dec 21, 2009 1:48:44 AM (14 years ago)
Author:
jchaffraix@webkit.org
Message:

defersLoading is disabled in current libcURL.
https://bugs.webkit.org/show_bug.cgi?id=32707

Patch by Julien Chaffraix <jchaffraix@pleyo.com> on 2009-12-18
Reviewed by Darin Adler.

Basically this change reverts r49577 that was totally wrong.
According to curlver.h, LIBCURL_VERSION_NUM is a
"6-digit (24 bits) hexadecimal number".

The check should be against 0x071200 (7.18) as it was originally the case.

  • platform/network/curl/ResourceHandleManager.cpp:

(WebCore::ResourceHandleManager::initializeHandle): Use the right check.

  • platform/network/curl/ResourceHandleCurl.cpp:

(WebCore::ResourceHandle::setDefersLoading): Ditto. Also removed a print
to use a LOG_ERROR instead.

Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r52434 r52438  
     12009-12-18  Julien Chaffraix  <jchaffraix@pleyo.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        defersLoading is disabled in current libcURL.
     6        https://bugs.webkit.org/show_bug.cgi?id=32707
     7
     8        Basically this change reverts r49577 that was totally wrong.
     9        According to curlver.h, LIBCURL_VERSION_NUM is a
     10        "6-digit (24 bits) hexadecimal number".
     11
     12        The check should be against 0x071200 (7.18) as it was originally the case.
     13
     14       * platform/network/curl/ResourceHandleManager.cpp:
     15        (WebCore::ResourceHandleManager::initializeHandle): Use the right check.
     16        * platform/network/curl/ResourceHandleCurl.cpp:
     17        (WebCore::ResourceHandle::setDefersLoading): Ditto. Also removed a print
     18        to use a LOG_ERROR instead.
     19 
    1202009-12-20  Kent Tamura  <tkent@chromium.org>
    221
  • trunk/WebCore/platform/network/curl/ResourceHandleCurl.cpp

    r49577 r52438  
    157157        return;
    158158
    159 #if LIBCURL_VERSION_NUM > 0x071800
     159#if LIBCURL_VERSION_NUM > 0x071200
    160160    if (!d->m_handle)
    161161        d->m_defersLoading = defers;
     
    180180#else
    181181    d->m_defersLoading = defers;
    182 #ifndef NDEBUG
    183     printf("Deferred loading is implemented if libcURL version is above 7.18.0");
    184 #endif
     182    LOG_ERROR("Deferred loading is implemented if libcURL version is above 7.18.0");
    185183#endif
    186184}
  • trunk/WebCore/platform/network/curl/ResourceHandleManager.cpp

    r51880 r52438  
    703703    d->m_handle = curl_easy_init();
    704704
    705 #if LIBCURL_VERSION_NUM > 0x071800
     705#if LIBCURL_VERSION_NUM > 0x071200
    706706    if (d->m_defersLoading) {
    707707        CURLcode error = curl_easy_pause(d->m_handle, CURLPAUSE_ALL);
Note: See TracChangeset for help on using the changeset viewer.