Changeset 50891 in webkit
- Timestamp:
- Nov 12, 2009 12:03:56 PM (14 years ago)
- Location:
- trunk/WebKit/chromium
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/chromium/ChangeLog
r50889 r50891 1 2009-11-12 Adam Barth <abarth> 2 3 Reviewed by Dimitri Glazkov. 4 5 [Chromium] reload-subframe-object.html fails 6 https://bugs.webkit.org/show_bug.cgi?id=31398 7 8 More closely match FrameLoaderClient.mm. Turns out we don't want to 9 use MIMETypeRegistry::getMIMETypeForPath because we can't distinguish 10 between application/octet-stream and lack of knowledge of the MIME 11 type. 12 13 Covered by reload-subframe-object.html. 14 15 * src/FrameLoaderClientImpl.cpp: 16 (WebKit::FrameLoaderClientImpl::objectContentType): 17 1 18 2009-11-12 Nate Chapin <japhet@chromium.org> 2 19 -
trunk/WebKit/chromium/src/FrameLoaderClientImpl.cpp
r50742 r50891 48 48 #include "PlatformString.h" 49 49 #include "PluginData.h" 50 #include "PluginDataChromium.h" 50 51 #include "StringExtras.h" 51 52 #include "WebDataSourceImpl.h" … … 1349 1350 String filename = url.lastPathComponent(); 1350 1351 int extensionPos = filename.reverseFind('.'); 1351 if (extensionPos >= 0) 1352 mimeType = MIMETypeRegistry::getMIMETypeForPath(url.path()); 1352 if (extensionPos >= 0) { 1353 String extension = filename.substring(extensionPos + 1); 1354 mimeType = MIMETypeRegistry::getMIMETypeForExtension(extension); 1355 if (mimeType.isEmpty()) { 1356 // If there's no mimetype registered for the extension, check to see 1357 // if a plugin can handle the extension. 1358 mimeType = getPluginMimeTypeFromExtension(extension); 1359 } 1360 } 1353 1361 1354 1362 if (mimeType.isEmpty())
Note: See TracChangeset
for help on using the changeset viewer.