Bug 206348 - Images from LibreOffice incorrectly pasted
Summary: Images from LibreOffice incorrectly pasted
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: Safari 13
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-01-16 05:08 PST by Comandeer
Modified: 2020-01-18 16:08 PST (History)
3 users (show)

See Also:


Attachments
LibreOffice document with image (15.96 KB, application/vnd.oasis.opendocument.text)
2020-01-16 05:08 PST, Comandeer
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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>