https://bugs.freedesktop.org/show_bug.cgi?id=60415

--- Comment #7 from Mark Bourne <[email protected]> ---
I've just seen this mentioned on the mailing list:
  http://listarchives.libreoffice.org/global/users/msg36731.html
This mentions LibreOffice Writer versions from 3.x to 4.2 on Ubuntu (10.04 to
13.1).

I can confirm this in LibreOffice Writer 4.0.4.2, copying from Mozilla
SeaMonkey 2.23, on Windows Vista. Copying static images from a couple of other
websites was no problem, so it seems to be partly to do with the way Google
images search works. Calc, Draw and Impress do not appear to be affected.

To reproduce (until Google change their image search, at least):
1. Navigate browser to https://www.google.com/search?tbm=isch&q=random
2. Right click on one of the result images and select "Copy Image"
3. From LibreOffice Writer, Edit > Paste
4. LibreOffice Writer shows an outline for the image, then hangs

Copying from other websites into Writer, it looks like Writer gets a link to
the image, then downloads it itself. However, the URL included when copying an
image from a Google image search isn't a link to an image on a web server (it
begins "data:" rather than "http:") - I guess the image data is obtained via
JavaScript or JSON or something in the web browser, but that link won't then
work for another application. Not good that it hangs LibreOffice Writer though!

I'm not sure about Linux, but on Windows a "copy" operation can put data on the
clipboard in several formats, and the "paste" operation can then use any one of
those (usually a default, with "paste special" giving the user a choice).
Copying an image from the web browser appears to place data on the clipboard in
HTML and bitmap formats, where the HTML includes a link to the image as well as
alt text etc.

It looks like Writer uses the HTML by default and attempts to download the
image data itself, while Draw and Impress use the image data from the
clipboard. Presumably Writer does something useful with the other HTML
attributes which Draw and Impress don't, but looks like it needs to handle
"data:" links (and perhaps other cases) more gracefully.

Writer does not hang if using Paste Special > Bitmap, to use the bitmap data
from the clipboard rather than the HTML - but that doesn't exactly help anyone
who uses the default "Paste" and finds Writer hangs.

Mark.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to