Bug 411214 - "New MIME type set with "Do this automatically ..." fails to locate helper app" [p=jmathies@mozilla.com (Jim Mathies) r=sdwilsh a1.9=beltzner]
authorreed@reedloden.com
Wed, 19 Mar 2008 23:09:02 -0700
changeset 13370 655e0d6778cef6b33b6ed686be6de69dd9e69c75
parent 13369 377747bc97d46cdce6e325747570eea1783c94e4
child 13371 31359dc3311e26ca836bde2f7b1a941803264839
push idunknown
push userunknown
push dateunknown
reviewerssdwilsh
bugs411214
milestone1.9b5pre
Bug 411214 - "New MIME type set with "Do this automatically ..." fails to locate helper app" [p=jmathies@mozilla.com (Jim Mathies) r=sdwilsh a1.9=beltzner]
toolkit/mozapps/downloads/content/helperApps.js
--- a/toolkit/mozapps/downloads/content/helperApps.js
+++ b/toolkit/mozapps/downloads/content/helperApps.js
@@ -170,17 +170,17 @@ HelperApps.prototype = {
     else if (aMIMEInfo.preferredAction == nsIMIMEInfo.useSystemDefault ||
              aMIMEInfo.preferredApplicationHandler == null) {
       entry.useSystemDefault = true;
       if (!isNewMIMEType) {
         // Creating a new entry, set path.
         entry.appPath = "";
       }
     } 
-    else {
+    else if (aMIMEInfo.preferredApplicationHandler instanceof Components.interfaces.nsILocalHandlerApp) {
       entry.saveToDisk       = false;
       entry.useSystemDefault = false;
       entry.handleInternal   = false;
       entry.appPath = aMIMEInfo.preferredApplicationHandler.executable.path;
       entry.appDisplayName = aMIMEInfo.preferredApplicationHandler.name;
     }
     
     // Do RDF magic.