Bug 1479726 - Use correct filterXUL property for nsIFilePicker in FilePicker.js. r=snorp
authorMark Banner <standard8@mozilla.com>
Fri, 10 Aug 2018 15:41:41 +0000
changeset 486084 7f2a8c753f0cb2df16ac97fa3125a66f0f82cf34
parent 486083 1a264632cf3fb854255fd31f8863e63861feccd2
child 486085 22df8543130204c62d68a257f2a3dbfe9d5abfad
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssnorp
bugs1479726
milestone63.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 1479726 - Use correct filterXUL property for nsIFilePicker in FilePicker.js. r=snorp MozReview-Commit-ID: A3G98cC8T4F Differential Revision: https://phabricator.services.mozilla.com/D2781
mobile/android/components/FilePicker.js
--- a/mobile/android/components/FilePicker.js
+++ b/mobile/android/components/FilePicker.js
@@ -67,21 +67,18 @@ FilePicker.prototype = {
     if (aFilterMask & Ci.nsIFilePicker.filterText) {
       this.appendFilter("*.txt; *.text");
     }
 
     if (aFilterMask & Ci.nsIFilePicker.filterXML) {
       this.appendFilter("*.xml");
     }
 
-    if (aFilterMask & Ci.nsIFilePicker.xulFilter) {
+    if (aFilterMask & Ci.nsIFilePicker.filterXUL) {
       this.appendFilter("*.xul");
-    }
-
-    if (aFilterMask & Ci.nsIFilePicker.xulFilter) {
       this.appendFilter("..apps");
     }
   },
 
   appendFilter: function(title, filter) {
     if (this._extensionsFilter)
         this._extensionsFilter += ", ";
     this._extensionsFilter += filter;