cefsharp / CefSharp

.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
http://cefsharp.github.io/
Other
9.83k stars 2.92k forks source link

OffScreen - Remove BrowserSettings property #2463

Closed ysh512 closed 6 years ago

ysh512 commented 6 years ago

Bug Report

Delete this line and everything above, and then fill in the details below.

amaitland commented 6 years ago

What version of the product are you using? 63.0.0

This version is no longer supported, version 65 is the latest.

I use the code below to disable image loading, but it did not work well. _browser.BrowserSettings.ImageLoading = CefState.Disabled;

For OffScreen you need to pass in BrowserSettings to the ChromiumWebBrowser constructor with the values already set. Look at the source for a similar example https://github.com/cefsharp/CefSharp/blob/cefsharp/65/CefSharp.OffScreen.Example/Program.cs#L50

Please don't creation additional issues, you should ask on https://gitter.im/cefsharp/CefSharp or https://stackoverflow.com/questions/tagged/cefsharp for a

amaitland commented 6 years ago

BrowserSettings can now only be set through the Constructor or CreateBrowser methods, relevant commit https://github.com/cefsharp/CefSharp/commit/2f7618bf0e1bcf79ee4b7485157668c000b3ca7c