RESOLVED FIXED 186348
Use the default label for snapshotted plug-ins if no mime-type is available
https://bugs.webkit.org/show_bug.cgi?id=186348
Summary Use the default label for snapshotted plug-ins if no mime-type is available
Antoine Quint
Reported 2018-06-06 06:31:52 PDT
We currently crash in titleText() or subtitleText() in HTMLPlugInImageElement.cpp if there is no mime-type specified.
Attachments
Patch (2.25 KB, patch)
2018-06-06 06:34 PDT, Antoine Quint
no flags
Antoine Quint
Comment 1 2018-06-06 06:32:10 PDT
Antoine Quint
Comment 2 2018-06-06 06:34:20 PDT
Alexey Proskuryakov
Comment 3 2018-06-06 10:16:52 PDT
Comment on attachment 342045 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=342045&action=review > Source/WebCore/ChangeLog:8 > + 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. Is it feasible to have a test for this?
Jon Lee
Comment 4 2018-06-06 11:09:56 PDT
To answer ap's question, there is a test, but it hits RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(isSafeToUpdateStyleOrLayout(*this)) in Document::updateLayout() See rdar://40849498.
WebKit Commit Bot
Comment 5 2018-06-06 11:24:44 PDT
Comment on attachment 342045 [details] Patch Clearing flags on attachment: 342045 Committed r232551: <https://trac.webkit.org/changeset/232551>
WebKit Commit Bot
Comment 6 2018-06-06 11:24:46 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.