Bug 838676 - GetDisplayFileName() should only return the file name, not the file path. r=sicking
authorMounir Lamouri <mounir.lamouri@gmail.com>
Fri, 22 Mar 2013 17:11:02 +0000
changeset 126371 efa7756f90a490adf776438cafdf9c71dd217b96
parent 126370 603f8064820051c99b0e4da9246fcd4340d58681
child 126372 511ea736284e6e72259a801228418d1055551783
push id25439
push usermlamouri@mozilla.com
push dateWed, 27 Mar 2013 11:38:49 +0000
treeherdermozilla-inbound@50d01a77718e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssicking
bugs838676
milestone22.0a1
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
Bug 838676 - GetDisplayFileName() should only return the file name, not the file path. r=sicking
content/html/content/src/nsHTMLInputElement.cpp
--- a/content/html/content/src/nsHTMLInputElement.cpp
+++ b/content/html/content/src/nsHTMLInputElement.cpp
@@ -1876,20 +1876,17 @@ nsHTMLInputElement::GetDisplayFileName(n
   if (OwnerDoc()->IsStaticDocument()) {
     aValue = mStaticDocFileList;
     return;
   }
 
   aValue.Truncate();
   for (int32_t i = 0; i < mFiles.Count(); ++i) {
     nsString str;
-    mFiles[i]->GetMozFullPathInternal(str);
-    if (str.IsEmpty()) {
-      mFiles[i]->GetName(str);
-    }
+    mFiles[i]->GetName(str);
     if (i == 0) {
       aValue.Append(str);
     }
     else {
       aValue.Append(NS_LITERAL_STRING(", ") + str);
     }
   }
 }