GNOME Bugzilla – Bug 777250
Make use of the WebKit UndoManager when available
Last modified: 2021-07-05 13:26:00 UTC
Geary is no longer using the WebKit undo stack to determine if a message body has been modified by the user in the composer (Bug 712926), since WebKit.WebView no longer has can_undo()/can_redo() methods. Instead it just assumes the body has been modified if any mutation event has occurred. This isn't great, but is perhaps better for the moment since custom DOM operations break the stack (e.g. Bug 712934). Getting access to the WebKit UndoManager may allow us to insert undo/redo transactions, hence not break the stack when manipulating the DOM, and might also then let us start using the stack to determine if the message body has actually been modified or not. The is already a WK bug open for this, so we should look into fixing that so we can fix this: https://bugs.webkit.org/show_bug.cgi?id=88595
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/geary/-/issues/ Thank you for your understanding and your help.