Changeset 95710 in webkit


Ignore:
Timestamp:
Sep 22, 2011 5:43:32 AM (13 years ago)
Author:
jesus@webkit.org
Message:

[Qt] Redirection overflow errors have wrong error domain
https://bugs.webkit.org/show_bug.cgi?id=68612

Reviewed by Andreas Kling.

Source/WebCore:

Redirection overflow currently puts the URL hostname in the errorDomain field.
Now redirection overflow errors will be classified as "HTTP" errors.

  • platform/network/qt/QNetworkReplyHandler.cpp:

(WebCore::QNetworkReplyHandler::redirect):

Source/WebKit2:

Redirection overflow currently puts the URL hostname in the errorDomain field
and therefore are treated as a QWebError::EngineError. From now on they
will be treated as QWebError::HttpError, since their error domain was modified
to "HTTP" in QNetworkReplyHandler::redirect().

  • UIProcess/API/qt/qweberror.cpp:

(QWebError::type):

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r95702 r95710  
     12011-09-22  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
     2
     3        [Qt] Redirection overflow errors have wrong error domain
     4        https://bugs.webkit.org/show_bug.cgi?id=68612
     5
     6        Reviewed by Andreas Kling.
     7
     8        Redirection overflow currently puts the URL hostname in the errorDomain field.
     9        Now redirection overflow errors will be classified as "HTTP" errors.
     10
     11        * platform/network/qt/QNetworkReplyHandler.cpp:
     12        (WebCore::QNetworkReplyHandler::redirect):
     13
    1142011-09-22  James Robinson  <jamesr@chromium.org>
    215
  • trunk/Source/WebCore/platform/network/qt/QNetworkReplyHandler.cpp

    r95631 r95710  
    529529    m_redirectionTries--;
    530530    if (!m_redirectionTries) {
    531         ResourceError error(newUrl.host(), 400 /*bad request*/,
     531        ResourceError error("HTTP", 400 /*bad request*/,
    532532                            newUrl.toString(),
    533533                            QCoreApplication::translate("QWebPage", "Redirection limit reached"));
  • trunk/Source/WebKit2/ChangeLog

    r95708 r95710  
     12011-09-22  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
     2
     3        [Qt] Redirection overflow errors have wrong error domain
     4        https://bugs.webkit.org/show_bug.cgi?id=68612
     5
     6        Reviewed by Andreas Kling.
     7
     8        Redirection overflow currently puts the URL hostname in the errorDomain field
     9        and therefore are treated as a QWebError::EngineError. From now on they
     10        will be treated as QWebError::HttpError, since their error domain was modified
     11        to "HTTP" in QNetworkReplyHandler::redirect().
     12
     13        * UIProcess/API/qt/qweberror.cpp:
     14        (QWebError::type):
     15
    1162011-09-22  Csaba Osztrogonác  <ossy@webkit.org>
    217
  • trunk/Source/WebKit2/UIProcess/API/qt/qweberror.cpp

    r95631 r95710  
    6868    if (errorDomain == "Download")
    6969        return QWebError::DownloadError;
    70     // FIXME: Redirection overflow currently puts the URL hostname in the errorDomain field.
    71     //        We should expose that error somehow. Source is QNetworkReplyHandler::redirect().
    7270    return QWebError::EngineError;
    7371}
Note: See TracChangeset for help on using the changeset viewer.