mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Expose certificate error codes to OnLoadError
This commit is contained in:
committed by
Marshall Greenblatt
parent
b7ef08ca84
commit
1d02cd2be0
@ -255,7 +255,7 @@ class CefAllowCertificateErrorCallbackImpl : public CefRequestCallback {
|
|||||||
CEF_REQUIRE_UIT();
|
CEF_REQUIRE_UIT();
|
||||||
std::move(callback).Run(
|
std::move(callback).Run(
|
||||||
allow ? content::CERTIFICATE_REQUEST_RESULT_TYPE_CONTINUE
|
allow ? content::CERTIFICATE_REQUEST_RESULT_TYPE_CONTINUE
|
||||||
: content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL);
|
: content::CERTIFICATE_REQUEST_RESULT_TYPE_DENY);
|
||||||
}
|
}
|
||||||
|
|
||||||
CallbackType callback_;
|
CallbackType callback_;
|
||||||
@ -855,7 +855,7 @@ void AlloyContentBrowserClient::AllowCertificateError(
|
|||||||
// A sub-resource has a certificate error. The user doesn't really
|
// A sub-resource has a certificate error. The user doesn't really
|
||||||
// have a context for making the right decision, so block the request
|
// have a context for making the right decision, so block the request
|
||||||
// hard.
|
// hard.
|
||||||
std::move(callback).Run(content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL);
|
std::move(callback).Run(content::CERTIFICATE_REQUEST_RESULT_TYPE_DENY);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -882,7 +882,7 @@ void AlloyContentBrowserClient::AllowCertificateError(
|
|||||||
// |callback| may be null if the user executed it despite returning false.
|
// |callback| may be null if the user executed it despite returning false.
|
||||||
callback = callbackImpl->Disconnect();
|
callback = callbackImpl->Disconnect();
|
||||||
if (!callback.is_null()) {
|
if (!callback.is_null()) {
|
||||||
std::move(callback).Run(content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL);
|
std::move(callback).Run(content::CERTIFICATE_REQUEST_RESULT_TYPE_DENY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user