summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/webenginewidgets/api/qwebenginepage.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/webenginewidgets/api/qwebenginepage.cpp b/src/webenginewidgets/api/qwebenginepage.cpp
index 430fa30a..fd1f5483 100644
--- a/src/webenginewidgets/api/qwebenginepage.cpp
+++ b/src/webenginewidgets/api/qwebenginepage.cpp
@@ -33,6 +33,7 @@
#include <QAction>
#include <QApplication>
+#include <QAuthenticator>
#include <QClipboard>
#include <QFileDialog>
#include <QIcon>
@@ -42,7 +43,6 @@
#include <QMessageBox>
#include <QStandardPaths>
#include <QUrl>
-#include <private/qauthenticator_p.h>
QT_BEGIN_NAMESPACE
@@ -313,9 +313,7 @@ void QWebEnginePagePrivate::authenticationRequired(const QUrl &requestUrl, const
{
Q_Q(QWebEnginePage);
QAuthenticator networkAuth;
- // Detach to trigger the creation of its QAuthenticatorPrivate.
- networkAuth.detach();
- QAuthenticatorPrivate::getPrivate(networkAuth)->realm = realm;
+ networkAuth.setRealm(realm);
if (isProxy)
Q_EMIT q->proxyAuthenticationRequired(requestUrl, &networkAuth, challengingHost);