1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

WebPage: Add basic support for client certificates

It will now always selects first available client certificate.

Requires QtWebEngine 5.12
This commit is contained in:
David Rosca 2018-12-25 11:52:38 +01:00
parent 5fcd29c507
commit 7429d1d8ef
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -113,6 +113,10 @@ WebPage::WebPage(QObject* parent)
#if QTWEBENGINEWIDGETS_VERSION >= QT_VERSION_CHECK(5, 12, 0) #if QTWEBENGINEWIDGETS_VERSION >= QT_VERSION_CHECK(5, 12, 0)
connect(this, &QWebEnginePage::printRequested, this, &WebPage::printRequested); connect(this, &QWebEnginePage::printRequested, this, &WebPage::printRequested);
connect(this, &QWebEnginePage::selectClientCertificate, this, [this](QWebEngineClientCertificateSelection selection) {
// TODO: It should prompt user
selection.select(selection.certificates().at(0));
});
#endif #endif
} }