Bug 285163 Make the hostname visible on the download dialog r=caillon sr=dveditz

This commit is contained in:
neil%parkwaycc.co.uk 2005-03-09 23:45:03 +00:00
parent 7f0bc16bc2
commit 5e7b6836e2
2 changed files with 5 additions and 4 deletions

View File

@ -249,7 +249,8 @@ nsHelperAppDialog.prototype = {
var suggestedFileName = this.mLauncher.suggestedFileName;
// Some URIs do not implement nsIURL, so we can't just QI.
var url = this.mLauncher.source;
var url = this.mLauncher.source.clone();
url.userPass = "";
var fname = "";
this.mSourcePath = url.prePath;
try {
@ -266,7 +267,6 @@ nsHelperAppDialog.prototype = {
if (suggestedFileName)
fname = suggestedFileName;
this.mTitle = this.replaceInsert( this.mDialog.document.title, 1, fname);
this.mDialog.document.title = this.mTitle;
@ -334,7 +334,7 @@ nsHelperAppDialog.prototype = {
// if mSourcePath is a local file, then let's use the pretty path name instead of an ugly
// url...
var pathString = this.mSourcePath;
var pathString = url.prePath;
try
{
var fileURL = url.QueryInterface(Components.interfaces.nsIFileURL);
@ -359,6 +359,7 @@ nsHelperAppDialog.prototype = {
// Set the location text, which is separate from the intro text so it can be cropped
var location = this.dialogElement( "location" );
location.value = pathString;
location.setAttribute( "tooltiptext", this.mSourcePath );
},
// Returns true iff opening the default application makes sense.

View File

@ -60,7 +60,7 @@
<hbox>
<vbox flex="1">
<description id="intro">&intro.label;</description>
<description id="location" crop="center" value=""/>
<description id="location" dir="ltr" crop="start" value=""/>
<separator orient="horizontal" class="thin"/>
<description id="prompt">&prompt.label;</description>
</vbox>