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:
Marshall Greenblatt
2021-09-27 14:28:55 +03:00
parent 659c037c84
commit f158c34a21
6 changed files with 4 additions and 29 deletions

View File

@@ -48,9 +48,6 @@ const char kDisableJavascriptDomPaste[] = "disable-javascript-dom-paste";
const char kAllowUniversalAccessFromFileUrls[] =
"allow-universal-access-from-files";
// Allow access from file URLs.
const char kAllowFileAccessFromFileUrls[] = "allow-file-access-from-files";
// Disable loading of images from the network. A cached image will still be
// rendered if requested.
const char kDisableImageLoading[] = "disable-image-loading";

View File

@@ -29,7 +29,6 @@ extern const char kDisableJavascriptCloseWindows[];
extern const char kDisableJavascriptAccessClipboard[];
extern const char kDisableJavascriptDomPaste[];
extern const char kAllowUniversalAccessFromFileUrls[];
extern const char kAllowFileAccessFromFileUrls[];
extern const char kDisableImageLoading[];
extern const char kImageShrinkStandaloneToFit[];
extern const char kDisableTextAreaResize[];