Changeset 67355 in webkit
- Timestamp:
- Sep 12, 2010 5:19:43 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r67354 r67355 1 2010-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 1 13 2010-09-12 Maciej Stachowiak <mjs@apple.com> 2 14 -
trunk/LayoutTests/platform/qt/Skipped
r67339 r67355 215 215 http/tests/navigation/metaredirect-goback.html 216 216 http/tests/navigation/timerredirect-goback.html 217 218 #unknown219 http/tests/navigation/reload-subframe-object.html220 217 221 218 # new content not loaded from popup window -
trunk/WebCore/ChangeLog
r67350 r67355 1 2010-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 1 26 2010-09-12 Dan Bernstein <mitz@apple.com> 2 27 -
trunk/WebCore/platform/network/qt/QNetworkReplyHandler.cpp
r67291 r67355 305 305 if (mimeType.isEmpty()) { 306 306 // 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()); 313 308 } 314 309 -
trunk/WebCore/platform/qt/MIMETypeRegistryQt.cpp
r56661 r67355 80 80 } 81 81 82 return "application/octet-stream";82 return String(); 83 83 } 84 84
Note: See TracChangeset
for help on using the changeset viewer.