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

--- Comment #12 from Mark Bourne <[email protected]> ---
Created attachment 93664
  --> https://bugs.freedesktop.org/attachment.cgi?id=93664&action=edit
Testcase containing an image which triggers the problem and some which don't

Attached testcase is a HTML document. Opening this document in a web browser,
copying the top image, and pasting it into Writer (using HTML format)
reproduces the problem seem attempting to copy from Google image search results
- Writer becomes very slow to respond. This top image is a JPEG image included
as a data: URI copied from Google image search results (the original image is
under a Creative Commons license, so hopefully no problem with using in this
testcase).

The second image is a conventional reference to an image on Google's servers
(so may stop working at some point). Copying and pasting this image into Writer
does NOT produce a problem. This file contains the same data as decoding the
data: URI produces, so doesn't look like the problem is with the image data
itself.

The third image was my attempt at producing a testcase entirely independent of
Google. It is a JPEG image, encoded into a data: URI. However, copying and
pasting this image into Writer does NOT produce the problem - so it seems not
to be /all/ data: URIs which cause a problem... The image is not displayed (OK,
so Writer possibly doesn't support data: URIs) but at least it doesn't become
almost unresponsive. It's not simply a matter of the size of the image/URI -
this third image which does not cause a problem is actually larger than the one
from Google which does cause a problem.

Opening this document directly in Writer (as opposed to copying and pasting
images from a web browser) produces somewhat erratic results. Writer hangs for
tens of seconds when first displaying the document. Scrolling the top image
placeholder out of view and back into view also hangs for tens of seconds. It
then seems to be responsive as usual, typing text is fine, but then undoing
that typing (Ctrl-Z or Edit > Undo) hangs for several seconds again - but only
if the placeholder for that top image is in view.

It seems that something about the images generated by Google image results and
encoded as data: URIs upsets Writer, while the same image accessed from a
https: URI does not cause a problem, neither do other images which are encoded
as data: URIs...

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