Changeset 137198 in webkit


Ignore:
Timestamp:
Dec 10, 2012 1:07:16 PM (11 years ago)
Author:
zandobersek@gmail.com
Message:

REGRESSION (r118735): svg/dom/complex-svgView-specification.html, svg/dom/SVGViewSpec.html, svg/dom/viewspec-parser.html failing on GTK Linux 64-bit Release
https://bugs.webkit.org/show_bug.cgi?id=87734

Reviewed by Martin Robinson.

Source/WebCore:

Don't modify ResourceRequest's URL to have the value of the (encoded)
URI of the SoupMessage. The only exception is in the case of cancelled
SoupMessage - the URL of the ResourceRequest should then be null.

No new tests - existing tests should show no regressions.

  • platform/network/soup/ResourceRequestSoup.cpp:

(WebCore::ResourceRequest::updateFromSoupMessage):

Tools:

When willSendRequest should return null in testing, cancel the SoupMessage
instead of setting the request's URI to about:blank.

  • DumpRenderTree/gtk/DumpRenderTree.cpp:

(willSendRequestCallback):

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r137194 r137198  
     12012-12-10  Zan Dobersek  <zandobersek@gmail.com>
     2
     3        REGRESSION (r118735): svg/dom/complex-svgView-specification.html, svg/dom/SVGViewSpec.html, svg/dom/viewspec-parser.html failing on GTK Linux 64-bit Release
     4        https://bugs.webkit.org/show_bug.cgi?id=87734
     5
     6        Reviewed by Martin Robinson.
     7
     8        Don't modify ResourceRequest's URL to have the value of the (encoded)
     9        URI of the SoupMessage. The only exception is in the case of cancelled
     10        SoupMessage - the URL of the ResourceRequest should then be null.
     11
     12        No new tests - existing tests should show no regressions.
     13
     14        * platform/network/soup/ResourceRequestSoup.cpp:
     15        (WebCore::ResourceRequest::updateFromSoupMessage):
     16
    1172012-12-10  Gustavo Noronha Silva  <gns@gnome.org>
    218
  • trunk/Source/WebCore/platform/network/soup/ResourceRequestSoup.cpp

    r131942 r137198  
    8686void ResourceRequest::updateFromSoupMessage(SoupMessage* soupMessage)
    8787{
    88     bool shouldPortBeResetToZero = m_url.hasPort() && !m_url.port();
    89     m_url = soupURIToKURL(soup_message_get_uri(soupMessage));
    90 
    91     // SoupURI cannot differeniate between an explicitly specified port 0 and
    92     // no port specified.
    93     if (shouldPortBeResetToZero)
    94         m_url.setPort(0);
     88    if (soupMessage->status_code == SOUP_STATUS_CANCELLED)
     89        setURL(KURL());
    9590
    9691    m_httpMethod = String::fromUTF8(soupMessage->method);
  • trunk/Tools/ChangeLog

    r137193 r137198  
     12012-12-10  Zan Dobersek  <zandobersek@gmail.com>
     2
     3        REGRESSION (r118735): svg/dom/complex-svgView-specification.html, svg/dom/SVGViewSpec.html, svg/dom/viewspec-parser.html failing on GTK Linux 64-bit Release
     4        https://bugs.webkit.org/show_bug.cgi?id=87734
     5
     6        Reviewed by Martin Robinson.
     7
     8        When willSendRequest should return null in testing, cancel the SoupMessage
     9        instead of setting the request's URI to about:blank.
     10
     11        * DumpRenderTree/gtk/DumpRenderTree.cpp:
     12        (willSendRequestCallback):
     13
    1142012-12-10  Jochen Eisinger  <jochen@chromium.org>
    215
  • trunk/Tools/DumpRenderTree/gtk/DumpRenderTree.cpp

    r136339 r137198  
    12601260static void willSendRequestCallback(WebKitWebView* webView, WebKitWebFrame* webFrame, WebKitWebResource* resource, WebKitNetworkRequest* request, WebKitNetworkResponse* response)
    12611261{
    1262 
    1263 
    12641262    if (!done && gTestRunner->willSendRequestReturnsNull()) {
    12651263        // As requested by the TestRunner, don't perform the request.
    1266         webkit_network_request_set_uri(request, "about:blank");
     1264        soup_message_set_status(webkit_network_request_get_message(request), SOUP_STATUS_CANCELLED);
    12671265        return;
    12681266    }
Note: See TracChangeset for help on using the changeset viewer.