Changeset 52112 in webkit


Ignore:
Timestamp:
Dec 14, 2009 12:49:51 PM (14 years ago)
Author:
eric@webkit.org
Message:

2009-12-14 Benjamin Poulain <benjamin.poulain@nokia.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] crash when clicking "Sign out" in GMail
https://bugs.webkit.org/show_bug.cgi?id=32300

When the ResourceLoader cancels the handle we have to make sure not to access
the resource handle afterwards again.
This complete r29515

  • platform/network/qt/QNetworkReplyHandler.cpp: (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r52108 r52112  
     12009-12-14  Benjamin Poulain  <benjamin.poulain@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] crash when clicking "Sign out" in GMail
     6        https://bugs.webkit.org/show_bug.cgi?id=32300
     7
     8        When the ResourceLoader cancels the handle we have to make sure not to access
     9        the resource handle afterwards again.
     10        This complete r29515
     11
     12        * platform/network/qt/QNetworkReplyHandler.cpp:
     13        (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
     14
    1152009-12-14  Alexander Pavlov  <apavlov@chromium.org>
    216
  • trunk/WebCore/platform/network/qt/QNetworkReplyHandler.cpp

    r52089 r52112  
    321321    QUrl redirection = m_reply->attribute(QNetworkRequest::RedirectionTargetAttribute).toUrl();
    322322    if (redirection.isValid()) {
     323        m_redirected = true;
     324
    323325        QUrl newUrl = m_reply->url().resolved(redirection);
    324326        ResourceRequest newRequest = m_resourceHandle->request();
     
    335337
    336338        client->willSendRequest(m_resourceHandle, newRequest, response);
    337         m_redirected = true;
     339        if (!m_resourceHandle) // network error did cancel the request
     340            return;
     341
    338342        m_request = newRequest.toNetworkRequest(m_resourceHandle->getInternal()->m_frame);
    339343        return;
Note: See TracChangeset for help on using the changeset viewer.