Changeset 67355 in webkit


Ignore:
Timestamp:
Sep 12, 2010 5:19:43 PM (14 years ago)
Author:
robert@webkit.org
Message:

2010-09-12 Robert Hogan <robert@webkit.org>

Reviewed by Andreas Kling.

[Qt] Fix http/tests/navigation/reload-subframe-object.html

Unskip http/tests/navigation/reload-subframe-object.html

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

  • platform/qt/Skipped:

2010-09-12 Robert Hogan <robert@webkit.org>

Reviewed by Andreas Kling.

[Qt] Fix http/tests/navigation/reload-subframe-object.html

We need to bring our use of getMimeTypeForPath() and
getMimeTypeForExtension() into line with WebCore expectations.

We should use MIMETypeRegistry::getMIMETypeForExtension() for cases
where an empty mimetype should be returned if no match is found, and
MIMETypeRegistry::getMIMETypeForPath() for cases where
'application/octet-stream' should be returned if no match is found.

Fixes http/tests/navigation/reload-subframe-object.html

Based on findings in webkit.org/b/31398 and webkit.org/b/15554.

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

  • platform/network/qt/QNetworkReplyHandler.cpp: (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
  • platform/qt/MIMETypeRegistryQt.cpp: (WebCore::MIMETypeRegistry::getMIMETypeForExtension):
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r67354 r67355  
     12010-09-12  Robert Hogan  <robert@webkit.org>
     2
     3        Reviewed by Andreas Kling.
     4
     5        [Qt] Fix http/tests/navigation/reload-subframe-object.html
     6
     7        Unskip http/tests/navigation/reload-subframe-object.html
     8
     9        https://bugs.webkit.org/show_bug.cgi?id=45613
     10
     11        * platform/qt/Skipped:
     12
    1132010-09-12  Maciej Stachowiak  <mjs@apple.com>
    214
  • trunk/LayoutTests/platform/qt/Skipped

    r67339 r67355  
    215215http/tests/navigation/metaredirect-goback.html
    216216http/tests/navigation/timerredirect-goback.html
    217 
    218 #unknown
    219 http/tests/navigation/reload-subframe-object.html
    220217
    221218# new content not loaded from popup window
  • trunk/WebCore/ChangeLog

    r67350 r67355  
     12010-09-12  Robert Hogan  <robert@webkit.org>
     2
     3        Reviewed by Andreas Kling.
     4
     5        [Qt] Fix http/tests/navigation/reload-subframe-object.html
     6
     7        We need to bring our use of getMimeTypeForPath() and
     8        getMimeTypeForExtension() into line with WebCore expectations.
     9
     10        We should use MIMETypeRegistry::getMIMETypeForExtension() for cases
     11        where an empty mimetype should be returned if no match is found, and
     12        MIMETypeRegistry::getMIMETypeForPath() for cases where
     13        'application/octet-stream' should be returned if no match is found.
     14
     15        Fixes http/tests/navigation/reload-subframe-object.html
     16
     17        Based on findings in webkit.org/b/31398 and webkit.org/b/15554.
     18
     19        https://bugs.webkit.org/show_bug.cgi?id=45613
     20
     21        * platform/network/qt/QNetworkReplyHandler.cpp:
     22        (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
     23        * platform/qt/MIMETypeRegistryQt.cpp:
     24        (WebCore::MIMETypeRegistry::getMIMETypeForExtension):
     25
    1262010-09-12  Dan Bernstein  <mitz@apple.com>
    227
  • trunk/WebCore/platform/network/qt/QNetworkReplyHandler.cpp

    r67291 r67355  
    305305    if (mimeType.isEmpty()) {
    306306        // let's try to guess from the extension
    307         QString extension = m_reply->url().path();
    308         int index = extension.lastIndexOf(QLatin1Char('.'));
    309         if (index > 0) {
    310             extension = extension.mid(index + 1);
    311             mimeType = MIMETypeRegistry::getMIMETypeForExtension(extension);
    312         }
     307        mimeType = MIMETypeRegistry::getMIMETypeForPath(m_reply->url().path());
    313308    }
    314309
  • trunk/WebCore/platform/qt/MIMETypeRegistryQt.cpp

    r56661 r67355  
    8080    }
    8181
    82     return "application/octet-stream";
     82    return String();
    8383}
    8484
Note: See TracChangeset for help on using the changeset viewer.