From 5dde7a21706b399a6c14b3ab0a12e70f5d26dafa Mon Sep 17 00:00:00 2001 From: Michal Klocek Date: Thu, 6 Aug 2020 12:26:44 +0200 Subject: Unify certificate error handling Before we move the certificate error to core, unify error handling between qml and widgets. [ChangeLog] WebPage::certificateError does not return bool it is enough to call defer, ignoreCertificateError() or rejectCertificate(). Change-Id: I14be40f1ab6b4cbded550260d66152f51cf47de2 Reviewed-by: Allan Sandfeld Jensen --- src/webenginewidgets/doc/src/qwebenginepage_lgpl.qdoc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/webenginewidgets/doc') diff --git a/src/webenginewidgets/doc/src/qwebenginepage_lgpl.qdoc b/src/webenginewidgets/doc/src/qwebenginepage_lgpl.qdoc index 789d9794e..5def0d65c 100644 --- a/src/webenginewidgets/doc/src/qwebenginepage_lgpl.qdoc +++ b/src/webenginewidgets/doc/src/qwebenginepage_lgpl.qdoc @@ -513,16 +513,13 @@ */ /*! - \fn bool QWebEnginePage::certificateError(const QWebEngineCertificateError & certificateError) + \fn void QWebEnginePage::certificateError(const QWebEngineCertificateError & certificateError) This function is called when an invalid certificate error is raised while loading a given request. - The \a certificateError parameter contains information about the certificate and details of the error. - - Return \c true to ignore the error and complete the request. Return \c false to stop loading + The \a certificateError parameter contains information about the certificate and details of the error, + it also provides the way to ignore the error and complete the request or stop loading the request. - \note If the error was successfully deferred then the returned value will be ignored. - \sa QWebEngineCertificateError */ -- cgit v1.2.3