Changeset 117071 in webkit


Ignore:
Timestamp:
May 15, 2012 8:34:09 AM (12 years ago)
Author:
jocelyn.turcotte@nokia.com
Message:

[Qt] http/tests/xmlhttprequest/xmlhttprequest-check-head-readystate-for-404.html times out
https://bugs.webkit.org/show_bug.cgi?id=84016

Reviewed by Simon Hausmann.

Source/WebCore:

Calling didFail abort the connection and doesn't activate the HEADERS_RECEIVED state.
Since the goal of HEAD is to test then the request should be marked as finished
also in cases of HTTP errors.
This matches other ports behavior.

  • platform/network/qt/QNetworkReplyHandler.cpp:

(WebCore::shouldIgnoreHttpError):

LayoutTests:

  • platform/qt/Skipped:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r117070 r117071  
     12012-05-15  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
     2
     3        [Qt] http/tests/xmlhttprequest/xmlhttprequest-check-head-readystate-for-404.html times out
     4        https://bugs.webkit.org/show_bug.cgi?id=84016
     5
     6        Reviewed by Simon Hausmann.
     7
     8        * platform/qt/Skipped:
     9
    1102012-05-15  Dinu Jacob  <dinu.jacob@nokia.com>
    211
  • trunk/LayoutTests/platform/qt/Skipped

    r117063 r117071  
    652652# https://bugs.webkit.org/show_bug.cgi?id=72252
    653653http/tests/misc/xslt-bad-import.html
    654 
    655 # [Qt] http/tests/xmlhttprequest/xmlhttprequest-check-head-readystate-for-404.html times out
    656 # https://bugs.webkit.org/show_bug.cgi?id=84016
    657 http/tests/xmlhttprequest/xmlhttprequest-check-head-readystate-for-404.html
    658654
    659655# =========================================================================== #
  • trunk/Source/WebCore/ChangeLog

    r117069 r117071  
     12012-05-15  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
     2
     3        [Qt] http/tests/xmlhttprequest/xmlhttprequest-check-head-readystate-for-404.html times out
     4        https://bugs.webkit.org/show_bug.cgi?id=84016
     5
     6        Reviewed by Simon Hausmann.
     7
     8        Calling didFail abort the connection and doesn't activate the HEADERS_RECEIVED state.
     9        Since the goal of HEAD is to test then the request should be marked as finished
     10        also in cases of HTTP errors.
     11        This matches other ports behavior.
     12
     13        * platform/network/qt/QNetworkReplyHandler.cpp:
     14        (WebCore::shouldIgnoreHttpError):
     15
    1162012-05-15  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
    217
  • trunk/Source/WebCore/platform/network/qt/QNetworkReplyHandler.cpp

    r109670 r117071  
    421421static bool shouldIgnoreHttpError(QNetworkReply* reply, bool receivedData)
    422422{
     423    // An HEAD XmlHTTPRequest shouldn't be marked as failure for HTTP errors.
     424    if (reply->operation() == QNetworkAccessManager::HeadOperation)
     425        return true;
     426
    423427    int httpStatusCode = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
    424428
Note: See TracChangeset for help on using the changeset viewer.