mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Remove CefBrowserSettings related to file URL access (fixes issue #2820)
This removes CefBrowserSettings.universal_access_from_file_urls and CefBrowserSettings.file_access_from_file_urls. Due to NetworkService requirements these values must now be configured globally via command-line flags ("allow-universal-access-from-files" and "allow-file-access-from-files" respectively). Also remove the kAllowFileAccessFromFileUrls switch in CEF which duplicates the existing kAllowFileAccessFromFiles switch in Chromium (see issue #1785).
This commit is contained in:
@@ -603,18 +603,6 @@ typedef struct _cef_browser_settings_t {
|
||||
///
|
||||
cef_state_t plugins;
|
||||
|
||||
///
|
||||
// Controls whether file URLs will have access to all URLs. Also configurable
|
||||
// using the "allow-universal-access-from-files" command-line switch.
|
||||
///
|
||||
cef_state_t universal_access_from_file_urls;
|
||||
|
||||
///
|
||||
// Controls whether file URLs will have access to other file URLs. Also
|
||||
// configurable using the "allow-file-access-from-files" command-line switch.
|
||||
///
|
||||
cef_state_t file_access_from_file_urls;
|
||||
|
||||
///
|
||||
// Controls whether image URLs will be loaded from the network. A cached image
|
||||
// will still be rendered if requested. Also configurable using the
|
||||
|
@@ -707,9 +707,6 @@ struct CefBrowserSettingsTraits {
|
||||
target->javascript_access_clipboard = src->javascript_access_clipboard;
|
||||
target->javascript_dom_paste = src->javascript_dom_paste;
|
||||
target->plugins = src->plugins;
|
||||
target->universal_access_from_file_urls =
|
||||
src->universal_access_from_file_urls;
|
||||
target->file_access_from_file_urls = src->file_access_from_file_urls;
|
||||
target->image_loading = src->image_loading;
|
||||
target->image_shrink_standalone_to_fit =
|
||||
src->image_shrink_standalone_to_fit;
|
||||
|
Reference in New Issue
Block a user