From: Mike Hommey <glandium@debian.org>
Date: Sat, 11 Jul 2009 20:19:01 +0200
Subject: Fix bad application message

https://bugzilla.mozilla.org/show_bug.cgi?id=442196
---
 toolkit/mozapps/downloads/src/nsHelperAppDlg.js.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/toolkit/mozapps/downloads/src/nsHelperAppDlg.js.in b/toolkit/mozapps/downloads/src/nsHelperAppDlg.js.in
index 0f394a5..dfcd89e 100644
--- a/toolkit/mozapps/downloads/src/nsHelperAppDlg.js.in
+++ b/toolkit/mozapps/downloads/src/nsHelperAppDlg.js.in
@@ -888,7 +888,7 @@ nsUnknownContentTypeDialog.prototype = {
             !helperApp.executable.exists()) {
           // Show alert and try again.        
           var bundle = this.dialogElement("strings");                    
-          var msg = bundle.getFormattedString("badApp", [this.dialogElement("otherHandler").path]);
+          var msg = bundle.getFormattedString("badApp", [this.dialogElement("otherHandler").getAttribute("path")]);
           var svc = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);
           svc.alert(this.mDialog, bundle.getString("badApp.title"), msg);
 
