Changeset 225743 in webkit


Ignore:
Timestamp:
Dec 11, 2017 9:38:57 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

[WinCairo] DumpRenderTree times out for all non-http tests
https://bugs.webkit.org/show_bug.cgi?id=180571

Patch by Basuke Suzuki <Basuke Suzuki> on 2017-12-11
Reviewed by Alex Christensen.

Bug fix on processing the curl event for file protocol.

No new tests. This fix is to run existing tests.

  • platform/network/curl/CurlRequest.cpp:

(WebCore::CurlRequest::completeDidReceiveResponse):

  • platform/network/curl/CurlRequest.h:

(WebCore::CurlRequest::isCompleted const):
(WebCore::CurlRequest::isCancelled const):
(WebCore::CurlRequest::isCompletedOrCancelled const):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r225741 r225743  
     12017-12-11  Basuke Suzuki  <Basuke.Suzuki@sony.com>
     2
     3        [WinCairo] DumpRenderTree times out for all non-http tests
     4        https://bugs.webkit.org/show_bug.cgi?id=180571
     5
     6        Reviewed by Alex Christensen.
     7
     8        Bug fix on processing the curl event for file protocol.
     9
     10        No new tests. This fix is to run existing tests.
     11
     12        * platform/network/curl/CurlRequest.cpp:
     13        (WebCore::CurlRequest::completeDidReceiveResponse):
     14        * platform/network/curl/CurlRequest.h:
     15        (WebCore::CurlRequest::isCompleted const):
     16        (WebCore::CurlRequest::isCancelled const):
     17        (WebCore::CurlRequest::isCompletedOrCancelled const):
     18
    1192017-12-11  Manuel Rego Casasnovas  <rego@igalia.com>
    220
  • trunk/Source/WebCore/platform/network/curl/CurlRequest.cpp

    r224386 r225743  
    537537    ASSERT(!m_didReturnFromNotify);
    538538
    539     if (isCompletedOrCancelled())
     539    if (isCancelled())
     540        return;
     541
     542    if (m_actionAfterInvoke != Action::StartTransfer && isCompleted())
    540543        return;
    541544
  • trunk/Source/WebCore/platform/network/curl/CurlRequest.h

    r224386 r225743  
    6161
    6262    bool isSyncRequest() const { return m_isSyncRequest; }
    63     bool isCompletedOrCancelled() const { return !m_curlHandle || m_cancelled; }
     63    bool isCompleted() const { return !m_curlHandle; }
     64    bool isCancelled() const { return m_cancelled; }
     65    bool isCompletedOrCancelled() const { return isCompleted() || isCancelled(); }
    6466
    6567
Note: See TracChangeset for help on using the changeset viewer.