Index: webkit/fileapi/sandbox_mount_point_provider.cc |
diff --git a/webkit/fileapi/sandbox_mount_point_provider.cc b/webkit/fileapi/sandbox_mount_point_provider.cc |
index ca54b99c6c685584f6b1415bb4d6351f14e9cb7b..138629c9defe72395d8c4822365369c41a684416 100644 |
--- a/webkit/fileapi/sandbox_mount_point_provider.cc |
+++ b/webkit/fileapi/sandbox_mount_point_provider.cc |
@@ -654,6 +654,9 @@ bool SandboxMountPointProvider::IsAllowedScheme(const GURL& url) const { |
// only if --allow-file-access-from-files flag is given. |
if (url.SchemeIs("http") || url.SchemeIs("https")) |
return true; |
+ if (url.SchemeIsFileSystem()) |
+ return url.inner_url() && IsAllowedScheme(*url.inner_url()); |
+ |
for (size_t i = 0; |
i < file_system_options_.additional_allowed_schemes().size(); |
++i) { |