CrashTracer: com.apple.WebKit.WebContent.Development at com.apple.WebCore: std::optio...
authordino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Jul 2018 23:17:41 +0000 (23:17 +0000)
committerdino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Jul 2018 23:17:41 +0000 (23:17 +0000)
commitc78f4beee9f771522f0537b422be6114a648a206
tree480707526ef48ad92ce3baa74b52d66fbd41017a
parentb5a234a10bce8ba74cd1716f959bd6b6395e90e4
CrashTracer: com.apple.WebKit.WebContent.Development at com.apple.WebCore: std::optional<WTF::Vector<WebCore::PluginInfo, 0ul, WTF::CrashOnOverflow, 16ul> >::operator* & + 73
https://bugs.webkit.org/show_bug.cgi?id=187820
<rdar://problem/42017759>

Reviewed by Antoine Quint.

Speculative fix for this crash, which is accessing an optional without checking
if it exists. The crash logs didn't point to a reproducible test case.

* plugins/PluginData.cpp:
(WebCore::PluginData::supportsWebVisibleMimeTypeForURL const): Return false if
the optional doesn't exist.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@234011 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/plugins/PluginData.cpp