Backed out changeset 11c73e8f71bb (bug 1349276) for bustage
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Mon, 27 Mar 2017 09:02:43 +0200
changeset 397879 6cf486eef1c32531fcdc94e89fda6ee2cec27e9c
parent 397878 11c73e8f71bb16cc0c42853913a1599dd0c27164
child 397880 8e3e5dc30f91015a3a33bdc184c06cd2e0a219d3
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1349276
milestone55.0a1
backs out11c73e8f71bb16cc0c42853913a1599dd0c27164
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset 11c73e8f71bb (bug 1349276) for bustage
dom/filesystem/FileSystemSecurity.cpp
--- a/dom/filesystem/FileSystemSecurity.cpp
+++ b/dom/filesystem/FileSystemSecurity.cpp
@@ -84,20 +84,16 @@ FileSystemSecurity::Forget(ContentParent
 
 bool
 FileSystemSecurity::ContentProcessHasAccessTo(ContentParentId aId,
                                               const nsAString& aPath)
 {
   MOZ_ASSERT(NS_IsMainThread());
   AssertIsInMainProcess();
 
-  if (aPath.Contains('..')) {
-    return false;
-  }
-
   nsTArray<nsString>* paths;
   if (!mPaths.Get(aId, &paths)) {
     return false;
   }
 
   for (uint32_t i = 0, len = paths->Length(); i < len; ++i) {
     if (FileSystemUtils::IsDescendantPath(paths->ElementAt(i), aPath)) {
       return true;