Index: third_party/WebKit/Source/core/dom/DOMImplementation.cpp |
diff --git a/third_party/WebKit/Source/core/dom/DOMImplementation.cpp b/third_party/WebKit/Source/core/dom/DOMImplementation.cpp |
index 16ed9f15da284b4e758a2d7a978641673ae1ec7d..e9f7596d7a018ccc323c51fd1f88ebec7b770d7c 100644 |
--- a/third_party/WebKit/Source/core/dom/DOMImplementation.cpp |
+++ b/third_party/WebKit/Source/core/dom/DOMImplementation.cpp |
@@ -234,7 +234,8 @@ PassRefPtrWillBeRawPtr<Document> DOMImplementation::createDocument(const String& |
// We do not want QuickTime to take over all image types, obviously. |
if ((type == "application/pdf" || type == "text/pdf") && pluginData && pluginData->supportsMimeType(type)) |
return PluginDocument::create(init); |
- if (Image::supportsType(type)) |
+ // multipart/x-mixed-replace is only supported for images. |
+ if (Image::supportsType(type) || type == "multipart/x-mixed-replace") |
return ImageDocument::create(init); |
// Check to see if the type can be played by our media player, if so create a MediaDocument |