Page 1 of 1

implement permission dialog

Posted: Tue Nov 21, 2023 8:23 am
by dseh
When I navigate to a page that requires login credentials, a login dialog typically appears in a classic browser. I assume that the dialog has to be implemented when I use Cef4Delphi and assumed that the FOnShowPermissionPrompt event has to be implemented. However, this is not fired when the page is loaded. The page can therefore not be loaded. A corresponding message appears.
What have I overlooked?

Re: implement permission dialog

Posted: Tue Nov 21, 2023 3:50 pm
by salvadordf
Hi,

Try using the TChromiumCore.OnGetAuthCredentials event to authenticate users.

TChromiumCore.OnShowPermissionPrompt is used to ask for permission to access the camera, mic, etc.