Title: [229418] trunk/Source/WebKit
- Revision
- 229418
- Author
- [email protected]
- Date
- 2018-03-08 11:06:22 -0800 (Thu, 08 Mar 2018)
Log Message
PluginInfoStore::isSupportedPlugin should check for empty mime type
https://bugs.webkit.org/show_bug.cgi?id=183457
<rdar://problem/38159575>
Reviewed by Chris Dumez.
* UIProcess/Plugins/PluginInfoStore.cpp:
(WebKit::PluginInfoStore::isSupportedPlugin):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (229417 => 229418)
--- trunk/Source/WebKit/ChangeLog 2018-03-08 18:47:45 UTC (rev 229417)
+++ trunk/Source/WebKit/ChangeLog 2018-03-08 19:06:22 UTC (rev 229418)
@@ -1,3 +1,14 @@
+2018-03-08 Youenn Fablet <[email protected]>
+
+ PluginInfoStore::isSupportedPlugin should check for empty mime type
+ https://bugs.webkit.org/show_bug.cgi?id=183457
+ <rdar://problem/38159575>
+
+ Reviewed by Chris Dumez.
+
+ * UIProcess/Plugins/PluginInfoStore.cpp:
+ (WebKit::PluginInfoStore::isSupportedPlugin):
+
2018-03-08 Yusuke Suzuki <[email protected]>
[JSC][WebCore] Extend jsDynamicCast for WebCore types in WebCore and remove jsDynamicDowncast
Modified: trunk/Source/WebKit/UIProcess/Plugins/PluginInfoStore.cpp (229417 => 229418)
--- trunk/Source/WebKit/UIProcess/Plugins/PluginInfoStore.cpp 2018-03-08 18:47:45 UTC (rev 229417)
+++ trunk/Source/WebKit/UIProcess/Plugins/PluginInfoStore.cpp 2018-03-08 19:06:22 UTC (rev 229418)
@@ -207,7 +207,7 @@
bool PluginInfoStore::isSupportedPlugin(const PluginInfoStore::SupportedPlugin& plugin, const String& mimeType, const URL& pluginURL)
{
- if (plugin.mimeTypes.contains(mimeType))
+ if (!mimeType.isEmpty() && plugin.mimeTypes.contains(mimeType))
return true;
auto extension = pathExtension(pluginURL);
return extension.isEmpty() ? false : plugin.extensions.contains(extension);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes