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 109032 16bc4aa2f52f134e1f759c87333c294c97e71411
parent 109031 4442534ceff299e0895d8961bc6633e09b462dbb
child 109033 d66ee1da0348370bf38983babde9ee8c27cd69de
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewersblassey
bugs795013
milestone18.0a1
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('/');