Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change to using Chrome bootstrap by default #4835

Closed
amaitland opened this issue Jun 13, 2024 · 12 comments
Closed

Change to using Chrome bootstrap by default #4835

amaitland opened this issue Jun 13, 2024 · 12 comments
Assignees
Milestone

Comments

@amaitland
Copy link
Member

amaitland commented Jun 13, 2024

CEF is removing the Alloy Bootstrap (#4795) in M128.

In M126 we will switch to using the Chrome Bootstrap by default.

For a limited time you will be able to revert to using the Alloy bootstrap by setting CefSettings.ChromeRuntime to false.

cefSettings.ChromeRuntime = false;

Important

If you discover an issue with the Chrome Bootstrap then you need to raise the issue on the CEF ISSUE TRACKER

https://github.com/chromiumembedded/cef/issues

Please post a link in #4795 for reference, don't create an issue in this repository.


chromiumembedded/cef#3685

@amaitland amaitland added this to the 126.1.x milestone Jun 13, 2024
@amaitland amaitland self-assigned this Jun 13, 2024
amaitland added a commit that referenced this issue Jun 21, 2024
- Allow for configuring of the CEF RuntimeStyle globally.

Issue #4835
@amaitland
Copy link
Member Author

amaitland commented Jun 21, 2024

CefSharpSettings.RuntimeStyle has been added to simplify switching to using the Chrome styled windows. This is a global setting, must be set before creating your first ChromiumWebBrowser instance.

CefSharpSettings.RuntimeStyle = CefRuntimeStyle.Chrome;

Behaviour can be controller on a per ChromiumWebBrowser instance via overriding ChromiumWebBrowser.CreateBrowserWindowInfo.

This is only for WinForms and Wpf.HwndHost. The OffScreen and WPF implementations will always use Alloy styled windows (that's all CEF supports, the property is ignored for offscreen rendering).

@amaitland
Copy link
Member Author

For a limited time you will be able to revert to using the Alloy bootstrap by setting CefSettings.ChromeRuntime to false.

cefSettings.ChromeRuntime = false;

Once chromiumembedded/cef#3685 has been resolved the Alloy bootstrap will be removed.

CEF has it's own support forum and issue tracker should you discover any bugs or changes in behaviour with the Chrome bootstrap, you can discuss them on the forum or raise issues on the issue tracker.

@amaitland
Copy link
Member Author

CefSharpSettings.RuntimeStyle has been added to simplify switching to using the Chrome styled windows. This is a global setting, must be set before creating your first ChromiumWebBrowser instance.

For those using the Chrome runtime currently will need to change the runtime style to Chrome to keep the same behaviour.

@amaitland
Copy link
Member Author

@amaitland
Copy link
Member Author

Important

If you discover an issue with the Chrome Bootstrap then you need to raise the issue on the CEF ISSUE TRACKER

https://github.com/chromiumembedded/cef/issues

Please post a link here for reference, don't create an issue in this repository.

@amaitland
Copy link
Member Author

If you discover an issue with the Chrome Bootstrap then you need to raise the issue on the CEF ISSUE TRACKER

https://github.com/chromiumembedded/cef/issues

If something doesn't work with the Chrome bootstrap and you switch back to the Alloy bootstrap and it works as expected then you'll need to raise an issue on https://github.com/chromiumembedded/cef/issues

In the short term keep using the Alloy bootstrap until the bug is fixed upstream

@amaitland
Copy link
Member Author

The Alloy bootstrap will be removed upstream in M128

@amaitland
Copy link
Member Author

The disable-pdf-extension flag is not supported with Chrome bootstrap.

@amaitland
Copy link
Member Author

Known issues

List at #4795

@chacham2
Copy link
Contributor

The disable-pdf-extension flag is not supported with Chrome bootstrap.

Will it ever be?

@max3163
Copy link

max3163 commented Sep 6, 2024

Add link to chromiumembedded/cef#3785

@amaitland
Copy link
Member Author

List of known issues is now at #4795 (comment)

Links have been updated, going forward will just keep the list updated there (if you find an upstream issue that effects CefSharp then please add the link in #4795)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants