Unreviewed, rolling out r230117.
[WebKit-https.git] / Source / WebCore / dom / DOMImplementation.cpp
index a7b5025..f5b8074 100644 (file)
@@ -149,10 +149,8 @@ Ref<Document> DOMImplementation::createDocument(const String& type, Frame* frame
 #endif
 
     // If we want to useImageDocumentForSubframePDF, we'll let that override plugin support.
-    if (frame && !frame->isMainFrame() && MIMETypeRegistry::isPDFMIMEType(type) && frame->settings().useImageDocumentForSubframePDF()) {
-        ASSERT(Image::supportsType(type));
+    if (frame && !frame->isMainFrame() && MIMETypeRegistry::isPDFMIMEType(type) && frame->settings().useImageDocumentForSubframePDF())
         return ImageDocument::create(*frame, url);
-    }
 
     PluginData* pluginData = nullptr;
     auto allowedPluginTypes = PluginData::OnlyApplicationPlugins;