Bug 210903 - [GTK][Stable] Drag of an image converts it into an anchor
Summary: [GTK][Stable] Drag of an image converts it into an anchor
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-23 01:53 PDT by Milan Crha
Modified: 2020-05-20 08:35 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Crha 2020-04-23 01:53:46 PDT
When a user adds an image into the HTML and then realizes it's in a wrong place and wants to place it elsewhere, then he/she can drag it. The problem is that the drop converts the image into a URL (and an anchor), instead of keeping it to be an image. Note this is drag in the webkit content, not from the outside. I can reproduce this with 2.24.4 and the trunk at r259630 with these steps:

a) run MiniBrowser: ./MiniBrowser --editor-mode
b) type: text
c) click Insert image and add some, say /usr/share/pixmaps/nobody.png
d) type: another text
e) drag the image after the word "another"

Actual result:

   textanotherfile:///usr/share/pixmaps/nobody.png text

where the file:// URI is underlined, a real anchor.

Expected result:

The image is left to be the image, not converted to a URL.
Comment 1 Carlos Garcia Campos 2020-05-20 08:35:17 PDT
This has been fixed by r261554 and r261570. I might try to fix it in stable branch without merging the reworks (or merging them, I'm not sure...)