cef icon indicating copy to clipboard operation
cef copied to clipboard

chrome: Support app restart for things like Chromium version downgrade

Open magreenblatt opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. When building Chromium with enable_downgrade_processing=true (default value) the app will attempt to restart if a version downgrade that requires User Data changes is detected. This relaunches chrome.exe via RelaunchChromeBrowserImpl (similar on other platforms).

Describe the solution you'd like Modify the Chromium code to relaunch the app's main executable by default, or execute a client callback for custom handling.

Describe alternatives you've considered Set enable_downgrade_processing=false to disable downgrade. We'll do this as a temporary solution in M120.

Additional context The same solution might also work for #3561.

magreenblatt avatar Nov 21 '23 18:11 magreenblatt

On Windows, it might also be nice to enable the functionality that restarts the app after a crash or Windows update.

magreenblatt avatar Nov 21 '23 18:11 magreenblatt

When supported, also add RESULT_CODE_DOWNGRADE_AND_RELAUNCH to cef_resultcode_t.

magreenblatt avatar Mar 18 '24 16:03 magreenblatt