Bug 795013 - Add semicolon to list of deliminators in extension list. r=blassey
authorWes Johnston <wjohnston@mozilla.com>
Tue, 02 Oct 2012 11:00:19 -0700
changeset 108923 16bc4aa2f52f134e1f759c87333c294c97e71411
parent 108922 4442534ceff299e0895d8961bc6633e09b462dbb
child 108924 d66ee1da0348370bf38983babde9ee8c27cd69de
push id23601
push userryanvm@gmail.com
push dateWed, 03 Oct 2012 01:23:59 +0000
treeherdermozilla-central@635fcc11d2b1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey
bugs795013
milestone18.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 795013 - Add semicolon to list of deliminators in extension list. r=blassey
mobile/android/base/GeckoAppShell.java
--- a/mobile/android/base/GeckoAppShell.java
+++ b/mobile/android/base/GeckoAppShell.java
@@ -1064,17 +1064,17 @@ public class GeckoAppShell
     }
 
     static String getExtensionFromMimeType(String aMimeType) {
         return MimeTypeMap.getSingleton().getExtensionFromMimeType(aMimeType);
     }
 
     static String getMimeTypeFromExtensions(String aFileExt) {
         MimeTypeMap mtm = MimeTypeMap.getSingleton();
-        StringTokenizer st = new StringTokenizer(aFileExt, "., ");
+        StringTokenizer st = new StringTokenizer(aFileExt, ".,; ");
         String type = null;
         String subType = null;
         while (st.hasMoreElements()) {
             String ext = st.nextToken();
             String mt = mtm.getMimeTypeFromExtension(ext);
             if (mt == null)
                 continue;
             int slash = mt.indexOf('/');