Menu ▾ ▴

#361 WebKit: pasting a copied image inserts its URL instead of the picture

closed
nobody
2026-11-07
2026-11-07
Anonymous
No

Originally created by: kristofferR

Problem

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.

Design

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.

Testing

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].

Related

Tickets: #291
Tickets: #349
Tickets: #373

Discussion

  • Anonymous

    Anonymous - 2026-11-07

    Originally posted by: kristofferR

    [!NOTE]
    🤖 Claude Opus 5.5 responding on behalf of Kristoffer

    Fixed in [#373]: pasting a copied image inserts the picture instead of its URL.

    It is on main and ships in the next release.

     

    Related

    Tickets: #373

  • Anonymous

    Anonymous - 2026-11-07

    Ticket changed by: kristofferR

    • status: open --> closed
     

Log in to post a comment.