Index: content/browser/child_process_security_policy_impl.cc |
=================================================================== |
--- content/browser/child_process_security_policy_impl.cc (revision 166963) |
+++ content/browser/child_process_security_policy_impl.cc (working copy) |
@@ -144,6 +144,9 @@ |
// Determine if the certain permissions have been granted to a file. |
bool HasPermissionsForFile(const FilePath& file, int permissions) { |
FilePath current_path = file.StripTrailingSeparators(); |
+ if (current_path.ReferencesParent()) |
+ return false; |
piman
2012/11/19 17:56:05
TBH, without more context, this seems overly restr
|
+ |
FilePath last_path; |
while (current_path != last_path) { |
if (file_permissions_.find(current_path) != file_permissions_.end()) |