From bbab484dc45ae2391065d07e1f68027bb53e44d9 Mon Sep 17 00:00:00 2001 From: Peter Varga Date: Thu, 20 May 2021 16:10:59 +0200 Subject: Remove deprecated useforglobalcertificateverification It enabled an unrecommended OCSP path on Linux [ChangeLog] (Q)WebEngineSettings::useForGlobalCertificateVerification has been removed. Task-number: QTBUG-91467 Change-Id: I9f5d1ad5e4fcb59abd31e6a133ded7bf8319c811 Reviewed-by: Kirill Burtsev (cherry picked from commit 8f7a386a5228428122813ebea1d7489783b00633) Reviewed-by: Qt Cherry-pick Bot --- src/webenginequick/api/qquickwebengineprofile.cpp | 69 ----------------------- 1 file changed, 69 deletions(-) (limited to 'src/webenginequick/api/qquickwebengineprofile.cpp') diff --git a/src/webenginequick/api/qquickwebengineprofile.cpp b/src/webenginequick/api/qquickwebengineprofile.cpp index e11df2f94..d3909418d 100644 --- a/src/webenginequick/api/qquickwebengineprofile.cpp +++ b/src/webenginequick/api/qquickwebengineprofile.cpp @@ -297,12 +297,6 @@ void QQuickWebEngineProfilePrivate::downloadUpdated(const DownloadItemInfo &info } } -void QQuickWebEngineProfilePrivate::useForGlobalCertificateVerificationChanged() -{ - Q_Q(QQuickWebEngineProfile); - Q_EMIT q->useForGlobalCertificateVerificationChanged(); -} - void QQuickWebEngineProfilePrivate::showNotification(QSharedPointer &controller) { Q_Q(QQuickWebEngineProfile); @@ -798,69 +792,6 @@ bool QQuickWebEngineProfile::isSpellCheckEnabled() const return d->profileAdapter()->isSpellCheckEnabled(); } -/*! - \property QQuickWebEngineProfile::useForGlobalCertificateVerification - \since 5.13 - \obsolete - - This property holds whether this profile is used for downloading and - caching during global certificate verification when using the online - certificate status protocol (OCSP), certificate revokation lists (CRLs), - and authority information access (AIA), for example. - - As long as one profile has this option enabled, all other profiles will be - able to use it for certificate verification. Only one profile at a time can - have this option enabled. It is recommended that the profile has a disk HTTP - cache to avoid needlessly re-downloading. - - By default, no profile has this property enabled. - - Originally only affected Linux/NSS installations, where having a profile with - this role enabled OCSP. - - Since 5.15.3 no longer does anything, and certificate verification is now - done using AIO on the requesting profile. -*/ - -/*! - \qmlproperty bool WebEngineProfile::useForGlobalCertificateVerification - \since QtWebEngine 1.9 - \obsolete - - This property holds whether this profile is used for downloading and - caching during global certificate verification when using the online - certificate status protocol (OCSP), certificate revokation lists (CRLs), - and authority information access (AIA), for example. - - As long as one profile has this option enabled, all other profiles will be - able to use it for certificate verification. Only one profile at a time can - have this option enabled. It is recommended that the profile has a disk HTTP - cache to avoid needlessly re-downloading. - - By default, no profile has this property enabled. - - Originally only affected Linux/NSS installations, where having a profile with - this role enabled OCSP. - - Since 5.15.3 no longer does anything, and certificate verification is now - done using AIO on the requesting profile. -*/ - -void QQuickWebEngineProfile::setUseForGlobalCertificateVerification(bool enable) -{ - Q_D(QQuickWebEngineProfile); - if (enable != d->profileAdapter()->isUsedForGlobalCertificateVerification()) { - d->profileAdapter()->setUseForGlobalCertificateVerification(enable); - emit useForGlobalCertificateVerificationChanged(); - } -} - -bool QQuickWebEngineProfile::isUsedForGlobalCertificateVerification() const -{ - const Q_D(QQuickWebEngineProfile); - return d->profileAdapter()->isUsedForGlobalCertificateVerification(); -} - /*! \qmlproperty string WebEngineProfile::downloadPath \since QtWebEngine 1.9 -- cgit v1.2.3