From b0e72423cff8d3d09d6c9ab735b6f1d4dfbc90a3 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 16 Jun 2021 15:59:46 +0000 Subject: [PATCH] Expose certificate error codes to OnLoadError --- libcef/browser/alloy/alloy_content_browser_client.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libcef/browser/alloy/alloy_content_browser_client.cc b/libcef/browser/alloy/alloy_content_browser_client.cc index 877909af7..48f567f9b 100644 --- a/libcef/browser/alloy/alloy_content_browser_client.cc +++ b/libcef/browser/alloy/alloy_content_browser_client.cc @@ -253,7 +253,7 @@ class CefAllowCertificateErrorCallbackImpl : public CefRequestCallback { CEF_REQUIRE_UIT(); std::move(callback).Run( allow ? content::CERTIFICATE_REQUEST_RESULT_TYPE_CONTINUE - : content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL); + : content::CERTIFICATE_REQUEST_RESULT_TYPE_DENY); } CallbackType callback_; @@ -855,7 +855,7 @@ void AlloyContentBrowserClient::AllowCertificateError( // A sub-resource has a certificate error. The user doesn't really // have a context for making the right decision, so block the request // hard. - std::move(callback).Run(content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL); + std::move(callback).Run(content::CERTIFICATE_REQUEST_RESULT_TYPE_DENY); return; } @@ -882,7 +882,7 @@ void AlloyContentBrowserClient::AllowCertificateError( // |callback| may be null if the user executed it despite returning false. callback = callbackImpl->Disconnect(); if (!callback.is_null()) { - std::move(callback).Run(content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL); + std::move(callback).Run(content::CERTIFICATE_REQUEST_RESULT_TYPE_DENY); } } }