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.