chromiumembedded / cef

Chromium Embedded Framework (CEF). A simple framework for embedding Chromium-based browsers in other applications.
https://bitbucket.org/chromiumembedded/cef/
Other
3.38k stars 467 forks source link

GetAuthCredentials causes -7 Timed out navigation errror #3815

Open omerbalash opened 4 weeks ago

omerbalash commented 4 weeks ago

Today GetAuthCredentials in CefRequestHandler is no longer called at all unless running with disable-chrome-login-prompt flag. But even with it set there is an issue where if the credentials are not provided quickly enough the browser will return -7 error and navigate to the error page for a timed out request.

This happens both if

  1. you keep hold of GetAuthCredentials and call the callback from inside its context
  2. you return from GetAuthCredentials and call the callback once you have the credentials in a different thread.

CEF version: 129.0.6668.71 Using C++ Windows 11 OS

magreenblatt commented 4 weeks ago

you keep hold of GetAuthCredentials and call the callback from inside its context

That sounds like you're blocking the CEF thread. Don't do that.

omerbalash commented 3 weeks ago

HI Marshall,

Thanks, Even if i dont block the CEF thread the same behavior we see the same behavior. in fact before i even call the callback the page navigates to TIMEOUT page.