Use the default label for snapshotted plug-ins if no mime-type is available
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Jun 2018 18:24:38 +0000 (18:24 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Jun 2018 18:24:38 +0000 (18:24 +0000)
commit8806f674a0454902ec58056e33c46ef7691699a0
treeed2c8ae58d9365b9b4e0d068198e14b819b77139
parentde0c8ef6d5e3445dc66a6aa47269577c555847df
Use the default label for snapshotted plug-ins if no mime-type is available
https://bugs.webkit.org/show_bug.cgi?id=186348

Patch by Antoine Quint <graouts@apple.com> on 2018-06-06
Reviewed by Jon Lee.

In case the mime-type is not available, use the default labels otherwise we'd crash trying to look up the empty string in the HashMap.

* html/HTMLPlugInImageElement.cpp:
(WebCore::titleText):
(WebCore::subtitleText):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@232551 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLPlugInImageElement.cpp