From b65b1fab9dbdf6e6fb50af9231ee6dec94fb8abf Mon Sep 17 00:00:00 2001 From: Chris Clime Date: Sat, 20 Nov 2021 16:28:30 +0100 Subject: [PATCH] HttpAuthenticationDialog is accepted via a function avoid timing issues with webapps --- src/app/WebViewImpl.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/WebViewImpl.qml b/src/app/WebViewImpl.qml index c49a47009..ba0f841e9 100644 --- a/src/app/WebViewImpl.qml +++ b/src/app/WebViewImpl.qml @@ -176,7 +176,8 @@ WebView { var authDialog = PopupUtils.open(Qt.resolvedUrl("HttpAuthenticationDialog.qml"), this); authDialog.host = UrlUtils.extractHost(request.url); authDialog.realm = request.realm; - authDialog.accept.connect(request.dialogAccept); + // for webapps the page did not load after entering the credentials when we directly connect to request.dialogAccept + authDialog.accept.connect(function(username, password) {request.dialogAccept(username, password);}); authDialog.reject.connect(request.dialogReject); break;