Switch to the safer check whether we are after the ending range when
refreshing the spell check - compare the ranges start positions and
quit the loop after we move after the start position of the ending
range. Previously we needed to get to the exact ending position and that
was sometimes not possible (it could happen that it was skipped - it
depends on the DOM structure) and we continued to move the selection
over and over.
If we fail to obtain a parent node of the last element in the viewport
we still tried to append to it, but that only caused a critical warning,
but as a consequence a WebKitDOMRange object was not created and we
tried to unref it that lead to a crash. Be sure that we always append
the spell check end node.
* Prefer image content over the text/* one.
* In HTML mode before trying to save the image from the clipboard (to be
later inserted into the editor) save the clipboard's text/* content as
if we fail to save the image (not necessary by our fault - looks like
the current web engines (WebKitGTK+, Gecko) have some problems
copying the IMG element with SRCSET attribute - see [0]). If this
fails then the source application can cancel the content and we could
not fallback to at least some content.
* Mark editor as changed when an image is inserted.
Reported as https://bugzilla.redhat.com/show_bug.cgi?id=1307205
[0] - https://bugzilla.redhat.com/show_bug.cgi?id=1307205#c10
This will prevent the WebView's context menu to be sized properly on
Wayland (on X11 the code is working fine, but it is not correct). There
is still one case where have to do an async call (inside the
EFocusTracker to get the clipboard's content) that will leave us with an
empty item in the context menu is some cases. This one will be fixed by
upstream gtk+ bug [0].
This was originally reported downstream [1].
[0] - https://bugzilla.gnome.org/show_bug.cgi?id=772505
[1] - https://bugzilla.redhat.com/show_bug.cgi?id=1394993
The shell_backend_get_config/data_dir() do it too, but the EMailBackend
overrides these methods and the special implementations do not do it,
thus when the evolution is run on a new account, then its console is
full of related runtime warnings from EMailRemoteContent and EMailProperties.
Don't forget to change new line characters to BR elements in PRE
elements when switching to plain text mode, otherwise the quote
characters will be inserted just to the beginning of the PRE element.