Remove CefBrowserSettings.application_cache (fixes issue #1785)

AppCache is deprecated in favor of Service Workers and support will be
fully removed soon (~M95). See https://web.dev/appcache-removal/.

Also add missing "allow-file-access-from-files" command-line switch for
CefBrowserSettings.file_access_from_file_urls.
This commit is contained in:
Marshall Greenblatt
2021-09-27 13:03:32 +03:00
parent cbc5710801
commit 6516b569a9
6 changed files with 11 additions and 13 deletions

View File

@@ -611,7 +611,7 @@ typedef struct _cef_browser_settings_t {
///
// Controls whether file URLs will have access to other file URLs. Also
// configurable using the "allow-access-from-files" command-line switch.
// configurable using the "allow-file-access-from-files" command-line switch.
///
cef_state_t file_access_from_file_urls;
@@ -653,12 +653,6 @@ typedef struct _cef_browser_settings_t {
///
cef_state_t databases;
///
// Controls whether the application cache can be used. Also configurable using
// the "disable-application-cache" command-line switch.
///
cef_state_t application_cache;
///
// Controls whether WebGL can be used. Note that WebGL requires hardware
// support and may not work on all systems even when enabled. Also

View File

@@ -717,7 +717,6 @@ struct CefBrowserSettingsTraits {
target->tab_to_links = src->tab_to_links;
target->local_storage = src->local_storage;
target->databases = src->databases;
target->application_cache = src->application_cache;
target->webgl = src->webgl;
target->background_color = src->background_color;