Remove deprecated webview functions
Geary currently uses several properties and functions from webview2gtk which are marked as deprecated on Webview2GTK since 2.40 and may be removed entirely in future versions. Most offenders are in unit tests. They should ideally be replaced before webview removes them entirely.
Remaining offenders:
-
WebView.run_javascript()
- should be replaced withWebView.evaluate_javascript()
but that requires some refactoring to unit tests -
WebKit.ConsoleMessage.*
- I'm not sure what these can be replaced with. -
WebKit.Settings.enable_java
- I think this can be safely removed without replacement. I don't think this setting does anything anymore.
I started working on this but I want some maintainers' feedback.
Edited by Daniel Yahalom