Bug 572441 - HelperApp not opened correctly [r=blassey]
authorWolfgang Rosenauer <wr@rosenauer.org>
Thu, 26 Aug 2010 22:05:32 -0400
changeset 66505 a4acd6e37bb5f50b20316f3b754476507d9c9127
parent 66504 45ec3ab316d60ba213d36bb9e9a293efc6cf4710
child 66506 f919686864566fc2093320e92074b42a08d55bdc
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey
bugs572441
Bug 572441 - HelperApp not opened correctly [r=blassey]
mobile/components/HelperAppDialog.js
--- a/mobile/components/HelperAppDialog.js
+++ b/mobile/components/HelperAppDialog.js
@@ -90,16 +90,17 @@ HelperAppLauncherDialog.prototype = {
                                              title, message,
                                              flags, save, open, nothing,
                                              null, {});
 
       if (choice == 0) {
         aLauncher.saveToDisk(null, false);
       }
       else if (choice == 1) {
+        aLauncher.MIMEInfo.preferredAction = Ci.nsIMIMEInfo.useSystemDefault;
         aLauncher.launchWithApplication(null, false);
       }
       else {
         try {
           aLauncher.cancel(NS_BINDING_ABORTED);
         } catch(e) {} 
       }
     } else {