Bug 206348

Summary: Images from LibreOffice incorrectly pasted
Product: WebKit Reporter: Comandeer <vepomoc>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: rniwa, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 13   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
LibreOffice document with image none

Description Comandeer 2020-01-16 05:08:03 PST
Created attachment 387911 [details]
LibreOffice document with image

Reproduction steps:

1. Open LibreOffice document with image (see attachment).
2. Open https://jsfiddle.net/Comandeer/rkog2zm1/
3. Copy all content from the LibreOffice document and paste it into [contenteditable] area on the JSFiddle page.

Expected result:

Content, including image, is pasted correctly.

Actual result:

Image is broken. Safari seems to strip [src] attribute from img element:

<img name="Image1" align="texttop" width="157" height="149" border="0">

However, different than with pasting from Word, the source is not substituted with blob:// URL. This causes the inability to paste images from LibreOffice documents.
Comment 1 Radar WebKit Bug Importer 2020-01-18 16:08:29 PST
<rdar://problem/58714276>