Originally created by: kristofferR
In WebKit, "Copy Image" from a web page puts both the image and its URL on the clipboard. Pasting into Messenger's composer inserts the URL text instead of attaching the picture.
On paste in the composer, when the clipboard holds exactly one image file plus a URL that is only that image's address, cancel the event and re-dispatch a paste with only the image file. fMess does this in 10-selection.js:62-91 (MIT; this would be adapted code, with attribution). Leave all other paste content (text, mixed content, multiple files) untouched.
macOS and Linux (WebKit): copy an image from Safari or a web page and paste; it attaches. Pasting plain links, text with links, and screenshots is unchanged. Windows (WebView2): verify no regression.
Part of [#349].
Originally posted by: kristofferR
Fixed in [#373]: pasting a copied image inserts the picture instead of its URL.
It is on
mainand ships in the next release.Related
Tickets:
#373Ticket changed by: kristofferR