Bug 1328624 - Added .zip to default extensions when installing an add-on from file. r=rhelmer
authorjakehm <jacob.harrowmortelliti@maine.edu>
Wed, 15 Feb 2017 20:32:53 -0500
changeset 344883 f2c4369cac4f66f526ab719c5d7f992dc77de3bc
parent 344882 19890a84e6c843b27b0e5953ca4db3049b886894
child 344884 bb0f9802f0d0682f521f749f055a964b371f1be5
push id37974
push userryanvm@gmail.com
push dateSat, 25 Feb 2017 19:48:24 +0000
treeherderautoland@f2c4369cac4f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrhelmer
bugs1328624
milestone54.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 1328624 - Added .zip to default extensions when installing an add-on from file. r=rhelmer MozReview-Commit-ID: 41JOiaFHxPU
toolkit/mozapps/extensions/content/extensions.js
--- a/toolkit/mozapps/extensions/content/extensions.js
+++ b/toolkit/mozapps/extensions/content/extensions.js
@@ -1402,17 +1402,17 @@ var gViewController = {
         const nsIFilePicker = Ci.nsIFilePicker;
         var fp = Cc["@mozilla.org/filepicker;1"]
                    .createInstance(nsIFilePicker);
         fp.init(window,
                 gStrings.ext.GetStringFromName("installFromFile.dialogTitle"),
                 nsIFilePicker.modeOpenMultiple);
         try {
           fp.appendFilter(gStrings.ext.GetStringFromName("installFromFile.filterName"),
-                          "*.xpi;*.jar");
+                          "*.xpi;*.jar;*.zip");
           fp.appendFilters(nsIFilePicker.filterAll);
         } catch (e) { }
 
         if (fp.show() != nsIFilePicker.returnOK)
           return;
 
         let browser = getBrowserElement();
         let files = fp.files;