What is the purpose of cef.pak file in cefsharp?

CefSharp's Frequently Asked Questions say you should disable package downloads:

var settings = new CefSharp.CefSettings { PackLoadingDisabled = true }; 

which is normally normal for a production mode application

I have a problem when a red frame appears around a drop-down list on a particular website. If I set PackLoadingDisabled = false and make sure that the cef.pak file is in the folder (this cef.pak is distributed with the nuget CefSharp package. I do not include any other .pak file besides locates / en-US.pak ), then this fixes the problem.

My question is: What is the purpose of this cef.pak file?

I looked through the CEF3 Readme , and it shows that it is optional, but it is not clear what purpose this package serves. Before I include it in my software distribution, I need to know exactly what it is for.

I'm sure the Download package is included in my version?

+5
source share
1 answer

Pak files are used for developer tools that may be included.

We choose NOT to send the pack. The only thing that arises is that the "locales" folder is created no matter which package download is disabled, which we use. Similarly, the localesdirpath has no effect.

Both the local folder and the red scroll bar are inherited by cefSharp from cef, so the errors are up. The good news is that you can fix the red scroll bars with some javascript and means you can still use the current chrome code.

Search for :: - webkit-scrollbar / :: - webkit-scrollbar-thumb / :: - webkit-scrollbar-thumb: vertical: hover / :: - webkit-scrollbar-thumb: vertical: active, etc.

+4
source

Source: https://habr.com/ru/post/1208728/


All Articles