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

This commit is contained in:
neil%parkwaycc.co.uk 2005-04-20 17:06:45 +00:00
Родитель 47d6e037a0
Коммит 5faac92152
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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 {