Now that Chrome Runtime is always enabled, a lot of sites asks for showing notifications , like this :
Is there a way to disable this on CEF4Delphi ?
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Disable notification window on CEF 128
-
- Posts: 481
- Joined: Thu Aug 10, 2017 12:40 pm
- salvadordf
- Posts: 4304
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Disable notification window on CEF 128
Hi,
Use the TChromiumCore.OnShowPermissionPrompt event and check that requested_permissions has a CEF_PERMISSION_TYPE_NOTIFICATIONS value.
Set aResult to true and call callback.Cont(CEF_PERMISSION_RESULT_DENY) to deny permission.
Use the TChromiumCore.OnShowPermissionPrompt event and check that requested_permissions has a CEF_PERMISSION_TYPE_NOTIFICATIONS value.
Set aResult to true and call callback.Cont(CEF_PERMISSION_RESULT_DENY) to deny permission.
-
- Posts: 481
- Joined: Thu Aug 10, 2017 12:40 pm
Re: Disable notification window on CEF 128
Thank you very much !