Bug 210903
| Summary: | [GTK][Stable] Drag of an image converts it into an anchor | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Milan Crha <mcrha> |
| Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | bugs-noreply, cgarcia |
| Priority: | P2 | ||
| Version: | Other | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Milan Crha
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Carlos Garcia Campos
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...)