Changeset 69795 in webkit


Ignore:
Timestamp:
Oct 14, 2010 12:38:24 PM (14 years ago)
Author:
robert@webkit.org
Message:

2010-10-14 Robert Hogan <robert@webkit.org>

Reviewed by Antonio Gomes.

[Qt] Fix http/tests/misc/redirect-to-external-url.html

Support the test in FrameLoaderClientQt and unskip.

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

  • platform/qt/Skipped:

2010-10-14 Robert Hogan <robert@webkit.org>

Reviewed by Antonio Gomes.

[Qt] Fix http/tests/misc/redirect-to-external-url.html

Support the test in FrameLoaderClientQt and unskip.

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

  • WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::canHandleRequest): (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r69786 r69795  
     12010-10-14  Robert Hogan  <robert@webkit.org>
     2
     3        Reviewed by Antonio Gomes.
     4
     5        [Qt] Fix http/tests/misc/redirect-to-external-url.html
     6
     7        Support the test in FrameLoaderClientQt and unskip.
     8
     9        https://bugs.webkit.org/show_bug.cgi?id=47609
     10
     11        * platform/qt/Skipped:
     12
    1132010-10-01  Martin Robinson  <mrobinson@igalia.com>
    214
  • trunk/LayoutTests/platform/qt/Skipped

    r69755 r69795  
    723723
    724724# timeout
    725 http/tests/misc/redirect-to-external-url.html
    726725http/tests/security/feed-urls-from-remote.html
    727726
  • trunk/WebKit/qt/ChangeLog

    r69777 r69795  
     12010-10-14  Robert Hogan  <robert@webkit.org>
     2
     3        Reviewed by Antonio Gomes.
     4
     5        [Qt] Fix http/tests/misc/redirect-to-external-url.html
     6
     7        Support the test in FrameLoaderClientQt and unskip.
     8
     9        https://bugs.webkit.org/show_bug.cgi?id=47609
     10
     11        * WebCoreSupport/FrameLoaderClientQt.cpp:
     12        (WebCore::FrameLoaderClientQt::canHandleRequest):
     13        (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
     14
    1152010-10-14  No'am Rosenthal  <noam.rosenthal@nokia.com>
    216
  • trunk/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp

    r69688 r69795  
    709709}
    710710
    711 bool FrameLoaderClientQt::canHandleRequest(const WebCore::ResourceRequest&) const
    712 {
     711bool FrameLoaderClientQt::canHandleRequest(const WebCore::ResourceRequest& request) const
     712{
     713    if (QWebPagePrivate::drtRun) {
     714        // Just reject the scheme used in
     715        // LayoutTests/http/tests/misc/redirect-to-external-url.html
     716        QUrl url = QUrl(request.url());
     717        if (url.scheme() == "spaceballs")
     718            return false;
     719    }
    713720    return true;
    714721}
     
    11931200}
    11941201
    1195 void FrameLoaderClientQt::dispatchUnableToImplementPolicy(const WebCore::ResourceError&)
    1196 {
    1197     notImplemented();
     1202void FrameLoaderClientQt::dispatchUnableToImplementPolicy(const WebCore::ResourceError& error)
     1203{
     1204    if (!m_webFrame)
     1205        return;
     1206
     1207    if (QWebPagePrivate::drtRun) {
     1208        printf("Policy delegate: unable to implement policy with error domain '%s', "
     1209              "error code %d, in frame '%s'\n",
     1210              error.domain().utf8().data(), error.errorCode(), m_webFrame->frameName().toUtf8().data());
     1211    }
    11981212}
    11991213
Note: See TracChangeset for help on using the changeset viewer.