| Index: content/browser/child_process_security_policy_impl.cc
|
| diff --git a/content/browser/child_process_security_policy_impl.cc b/content/browser/child_process_security_policy_impl.cc
|
| index 004fcb58ee2ca6b3c806b782d2fca69244ee1646..0eb5ade6f4a3f8cbe8d310556ae4a064c2d100ae 100644
|
| --- a/content/browser/child_process_security_policy_impl.cc
|
| +++ b/content/browser/child_process_security_policy_impl.cc
|
| @@ -796,6 +796,14 @@ bool ChildProcessSecurityPolicyImpl::HasPermissionsForFileSystemFile(
|
| if (!url.is_valid())
|
| return false;
|
|
|
| + // If |url.origin()| is not committable in this process, then this page
|
| + // should not be able to place content in that origin via the filesystem
|
| + // API either.
|
| + if (!CanCommitURL(child_id, url.origin())) {
|
| + UMA_HISTOGRAM_BOOLEAN("FileSystem.OriginFailedCanCommitURL", true);
|
| + return false;
|
| + }
|
| +
|
| if (url.path().ReferencesParent())
|
| return false;
|
|
|
|
|