CEF Chrome Runtime: Disable Save Password prompt

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

CEF Chrome Runtime: Disable Save Password prompt

Postby schikura » Mon Aug 30, 2021 12:30 pm

As informed in my previous post https://www.magpcss.org/ceforum/viewtopic.php?f=6&t=18480&p=49557#p49557, I have successfully enabled chrome runtime in our embedded browser.

I see that whenever the web page is having username/password fields, the Save Password prompt is coming on similar lines to the Chrome browser.
SavePasswordPrompt.png
SavePasswordPrompt.png (20.75 KiB) Viewed 2424 times


Is there a way to disable this prompt? I see that when I navigate to [url]chrome://settings[/url] using our embedded browser, Under Passwords->Offer to save passwords is enabled. Is there a way to control those settings from either the source code or some command line options?
cef_settings.png
cef_settings.png (20.58 KiB) Viewed 2424 times


Will appreciate your help.
Thanks in Advance.
schikura
Techie
 
Posts: 11
Joined: Thu Jun 24, 2021 12:29 pm

Re: CEF Chrome Runtime: Disable Save Password prompt

Postby magreenblatt » Mon Aug 30, 2021 3:17 pm

There appears to be a "credentials_enable_service" preference. You can try setting that to false via CefRequestContext::SetPreference.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: CEF Chrome Runtime: Disable Save Password prompt

Postby schikura » Wed Sep 08, 2021 1:03 pm

Thanks https://www.magpcss.org/ceforum/memberlist.php?mode=viewprofile&u=2 for the accurate help as always.
Trying our chrome runtime in our project for the first time.
May post more queries if not able to resolve anything.
schikura
Techie
 
Posts: 11
Joined: Thu Jun 24, 2021 12:29 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 32 guests