Re: GetAuthCredentials works only once
Posted: Fri Sep 10, 2021 12:52 am
I see CefSharp noticed this as well and their solution - until a fix in CEF - is to pass a noop completion callback.
Probably in CEF the fix should be in CefRequestContextImpl::ClearHttpAuthCredentialsInternal by adding something like this
Maybe some control on start_time and end_time will be required, but this is something else.
Probably in CEF the fix should be in CefRequestContextImpl::ClearHttpAuthCredentialsInternal by adding something like this
- Code: Select all
void CefRequestContextImpl::ClearHttpAuthCredentialsInternal(
CefRefPtr<CefCompletionCallback> callback,
CefBrowserContext::Getter browser_context_getter) {
auto browser_context = browser_context_getter.Run();
if (!browser_context)
return;
browser_context->GetNetworkContext()->ClearHttpAuthCache(
/*start_time=*/base::Time(), /*end_time=*/base::Time::Max(),
base::BindOnce(&CefCompletionCallback::OnComplete,
callback ? callback : base::NullCallback())); <== this
}
Maybe some control on start_time and end_time will be required, but this is something else.