Changeset 45707 in webkit


Ignore:
Timestamp:
Jul 10, 2009 6:25:41 AM (15 years ago)
Author:
Simon Hausmann
Message:

2009-07-04 Sriram Yadavalli <sriram.yadavalli@nokia.com>

Reviewed by Simon Hausmann.

https://bugs.webkit.org/show_bug.cgi?id=26439

QtWebKit fails in loading www.nytimes.com in Windows/Linux

QNetworkReplyHandler is ignoring content associated with 401 error.
This causes the XHR response handling to fail.

Simon: Added also ProxyAuthenticationRequiredError, to handle the same
case when going through proxies, as suggested by Prasanth.

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

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r45704 r45707  
     12009-07-04  Sriram Yadavalli  <sriram.yadavalli@nokia.com>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=26439
     6
     7        QtWebKit fails in loading www.nytimes.com in Windows/Linux
     8
     9        QNetworkReplyHandler is ignoring content associated with 401 error.
     10        This causes the XHR response handling to fail.
     11
     12        Simon: Added also ProxyAuthenticationRequiredError, to handle the same
     13        case when going through proxies, as suggested by Prasanth.
     14
     15        * platform/network/qt/QNetworkReplyHandler.cpp:
     16        (WebCore::QNetworkReplyHandler::finish):
     17
    1182009-07-10  Simon Hausmann  <simon.hausmann@nokia.com>
    219
  • trunk/WebCore/platform/network/qt/QNetworkReplyHandler.cpp

    r44934 r45707  
    226226        start();
    227227    } else if (m_reply->error() != QNetworkReply::NoError
    228                // a web page that returns 403/404 can still have content
     228               // a web page that returns 401/403/404 can still have content
    229229               && m_reply->error() != QNetworkReply::ContentOperationNotPermittedError
    230                && m_reply->error() != QNetworkReply::ContentNotFoundError) {
     230               && m_reply->error() != QNetworkReply::ContentNotFoundError
     231               && m_reply->error() != QNetworkReply::AuthenticationRequiredError
     232               && m_reply->error() != QNetworkReply::ProxyAuthenticationRequiredError) {
    231233        QUrl url = m_reply->url();
    232234        ResourceError error(url.host(), m_reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt(),
Note: See TracChangeset for help on using the changeset viewer.