Disabling Feature FormsControlRefresh

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.

Disabling Feature FormsControlRefresh

Postby stevensnow » Thu Mar 04, 2021 2:57 pm

For our project, since the Forms Control Refresh UI changes were added to Cef, we have been disabling that feature by adding this to CefSettings:

settings.CefCommandLineArgs.Add("disable-features", "FormControlsRefresh");

However, we've noticed that this doesn't seem to work anymore with Cef 87. Is there an alternative way to accomplish this that works in 87?

Thanks!
stevensnow
Techie
 
Posts: 10
Joined: Thu Nov 12, 2020 1:27 pm

Re: Disabling Feature FormsControlRefresh

Postby magreenblatt » Thu Mar 04, 2021 4:53 pm

Disabling of Chromium features only works for a limited number of versions.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Disabling Feature FormsControlRefresh

Postby stevensnow » Thu Mar 04, 2021 4:56 pm

Changing that line to this actually seems to have done the trick
settings.CefCommandLineArgs.Add("--disable-features", "FormControlsRefresh");

That is good to know though that this is not a viable long term solution.
stevensnow
Techie
 
Posts: 10
Joined: Thu Nov 12, 2020 1:27 pm

Re: Disabling Feature FormsControlRefresh

Postby amaitland » Thu Mar 04, 2021 5:07 pm

If you are using CefSharp which based on the code I'm guessing you are then you should check if disable-features is already set and append yours (unless you have a reason to override the default).

https://github.com/cefsharp/CefSharp/bl ... Base.h#L59

https://bitbucket.org/chromiumembedded/ ... upport-for
https://bitbucket.org/chromiumembedded/ ... orking-add
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 104 guests