From 8e4d5b65537d54c2d2c9bcce6bf7ea731d472795 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 21 Feb 2023 10:08:38 +0100 Subject: OAuth2 credentials prompter: Log what URI is being opened in the WebKitWebView There is logged what URI had been loaded, but not what URI had been opened. These can differ, when the server redirects the used URI to a different place. --- src/libedataserverui/e-credentials-prompter-impl-oauth2.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libedataserverui/e-credentials-prompter-impl-oauth2.c b/src/libedataserverui/e-credentials-prompter-impl-oauth2.c index 9a3918b61..c6a56107d 100644 --- a/src/libedataserverui/e-credentials-prompter-impl-oauth2.c +++ b/src/libedataserverui/e-credentials-prompter-impl-oauth2.c @@ -1318,6 +1318,10 @@ e_credentials_prompter_impl_oauth2_show_dialog (ECredentialsPrompterImplOAuth2 * progress_handler_id = g_signal_connect (web_view, "notify::estimated-load-progress", G_CALLBACK (cpi_oauth2_notify_estimated_load_progress_cb), progress_bar); + if (cpi_oauth2_get_debug ()) { + e_util_debug_print ("OAuth2", "Loading URI: '%s'\n", uri); + } + webkit_web_view_load_uri (web_view, uri); #else /* WITH_WEBKITGTK */ _libedataserverui_entry_set_text (GTK_ENTRY (url_entry), uri); -- cgit v1.2.1