Changeset 99157 in webkit


Ignore:
Timestamp:
Nov 3, 2011, 3:00:37 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

Source/WebCore: REGRESSION (r94132): broke fast/loader/location-port.html on GTK
https://bugs.webkit.org/show_bug.cgi?id=67277

Patch by Devdatta Deshpande <webkit.devdatta@gmail.com> on 2011-11-03
Reviewed by Adam Barth.

If port is 0, SoupURI does not have an explicitly specified port. Due
to this port value is ignored in SoupURI. Hence, an extra check is
required to restore the port.

Test: LayoutTests/fast/loader/location-port.html

  • platform/network/soup/ResourceRequestSoup.cpp:

(WebCore::ResourceRequest::updateFromSoupMessage):

LayoutTests: REGRESSION (r94132): broke fast/loader/location-port.html on GTK
https://bugs.webkit.org/show_bug.cgi?id=67277

Patch by Devdatta Deshpande <webkit.devdatta@gmail.com> on 2011-11-03
Reviewed by Adam Barth.

Removed LayoutTests/fast/loader/location-port.html from Skipped tests
for GTK

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

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r99155 r99157  
     12011-11-03  Devdatta Deshpande  <webkit.devdatta@gmail.com>
     2
     3        REGRESSION (r94132): broke fast/loader/location-port.html on GTK
     4        https://bugs.webkit.org/show_bug.cgi?id=67277
     5
     6        Reviewed by Adam Barth.
     7
     8        Removed LayoutTests/fast/loader/location-port.html from Skipped tests
     9        for GTK
     10
     11        * platform/gtk/Skipped:
     12
    1132011-11-03  Dongwoo Im  <dw.im@samsung.com>
    214
  • trunk/LayoutTests/platform/gtk/Skipped

    r99131 r99157  
    15921592fast/loader/form-submission-after-beforeunload-cancel.html
    15931593
    1594 # https://bugs.webkit.org/show_bug.cgi?id=67277
    1595 fast/loader/location-port.html
    1596 
    15971594# https://bugs.webkit.org/show_bug.cgi?id=67398
    15981595platform/gtk/accessibility/combo-box-collapsed-selection-changed.html
  • trunk/Source/WebCore/ChangeLog

    r99150 r99157  
     12011-11-03  Devdatta Deshpande  <webkit.devdatta@gmail.com>
     2
     3        REGRESSION (r94132): broke fast/loader/location-port.html on GTK
     4        https://bugs.webkit.org/show_bug.cgi?id=67277
     5
     6        Reviewed by Adam Barth.
     7
     8        If port is 0, SoupURI does not have an explicitly specified port. Due
     9        to this port value is ignored in SoupURI. Hence, an extra check is
     10        required to restore the port.
     11
     12        Test: LayoutTests/fast/loader/location-port.html
     13
     14        * platform/network/soup/ResourceRequestSoup.cpp:
     15        (WebCore::ResourceRequest::updateFromSoupMessage):
     16
    1172011-11-03  Joseph Pecoraro  <pecoraro@apple.com>
    218
  • trunk/Source/WebCore/platform/network/soup/ResourceRequestSoup.cpp

    r95901 r99157  
    8686void ResourceRequest::updateFromSoupMessage(SoupMessage* soupMessage)
    8787{
     88    bool shouldPortBeResetToZero = m_url.hasPort() && !m_url.port();
    8889    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);
    8995
    9096    m_httpMethod = String::fromUTF8(soupMessage->method);
Note: See TracChangeset for help on using the changeset viewer.