[Libreoffice-bugs] [Bug 125571] Copy & paste from firefox doesn't work

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed May 29 11:57:58 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=125571

Tor Lillqvist <tml at iki.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |NOTOURBUG

--- Comment #2 from Tor Lillqvist <tml at iki.fi> ---
I would assume this is a Firefox bug. The data Firefox puts on the system
clipboard ("pasteboard" in iOS terminology) for the image in question is
advertised as being of the types public.url and public.png. The Collabora
Office app then tries to use the public.png data, assuming (naturally) that it
is a PNG image. However, it actually seems to be a JPEG (JFIF) image. The magic
number at the start of the data is 0xffd8ffe0, which indicated JPEG. (PNG files
start with 0x89504e47).

If one copies the same image to the clipboard in Safari, the advertised types
of data are public.url and public.jpeg. (And the Collabora Office app uses the
public.jpeg data successfully.)

Not sure how Pages manages to accept it. Maybe it uses the URL data
(public.url) and downloads the image anew? Or maybe it has code that determines
the actual format of the image from the data contents, despite it being claimed
to be PNG? In theory we could do something similar in LibreOffice, but not sure
whether it is worth it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190529/0187c8f3/attachment-0001.html>


More information about the Libreoffice-bugs mailing list