2010-09-12 Robert Hogan <robert@webkit.org>
authorrobert <robert@webkit.org>
Mon, 13 Sep 2010 00:19:43 +0000 (00:19 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Wed, 26 Jan 2011 20:59:18 +0000 (17:59 -0300)
commit1f0a7bea034d790d4dc82380b8d29460eae230dc
treee983b670311114074153961dcf9500cd30109759
parent053ac13efd06d08b02352e726bf0cd3528aed5e7
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):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67355 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/qt/Skipped
WebCore/ChangeLog
WebCore/platform/network/qt/QNetworkReplyHandler.cpp
WebCore/platform/qt/MIMETypeRegistryQt.cpp