From 5faac921521f44534859962d1d4adbb2df75ff2f Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Wed, 20 Apr 2005 17:06:45 +0000 Subject: [PATCH] Exception-proof the clearing of the username and password from a URL in case it doesn't understand the concept b=290829 r=biesi sr=dveditz a=asa --- embedding/components/ui/helperAppDlg/nsHelperAppDlg.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/embedding/components/ui/helperAppDlg/nsHelperAppDlg.js b/embedding/components/ui/helperAppDlg/nsHelperAppDlg.js index 7dabb95f209..682370e47b2 100644 --- a/embedding/components/ui/helperAppDlg/nsHelperAppDlg.js +++ b/embedding/components/ui/helperAppDlg/nsHelperAppDlg.js @@ -263,7 +263,9 @@ nsHelperAppDialog.prototype = { // Some URIs do not implement nsIURL, so we can't just QI. var url = this.mLauncher.source.clone(); - url.userPass = ""; + try { + url.userPass = ""; + } catch (ex) {} var fname = ""; this.mSourcePath = url.prePath; try {