Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Unified Diff: third_party/WebKit/Source/core/dom/DOMImplementation.cpp

Issue 1710733002: Move multipart resource handling to core/fetch (2/2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@multipart-cleanup
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698