From ac0e34d599736bfbc7f1351367444b460ad8cd9d Mon Sep 17 00:00:00 2001 From: "bryner%uiuc.edu" Date: Tue, 18 Apr 2000 02:40:23 +0000 Subject: [PATCH] Make the title for a finger document show "Finger information for user@host". r=valeski. git-svn-id: svn://10.0.0.236/trunk@66239 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/extensions/finger/nsFingerChannel.cpp | 5 ++++- mozilla/netwerk/protocol/finger/src/nsFingerChannel.cpp | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mozilla/extensions/finger/nsFingerChannel.cpp b/mozilla/extensions/finger/nsFingerChannel.cpp index 317a5d4dcd7..9cfb2e1037a 100644 --- a/mozilla/extensions/finger/nsFingerChannel.cpp +++ b/mozilla/extensions/finger/nsFingerChannel.cpp @@ -486,7 +486,10 @@ nsFingerChannel::OnStopRequest(nsIChannel* aChannel, nsISupports* aContext, nsCOMPtr converter(do_QueryInterface(converterListener)); if (converter) { - nsAutoString title; title.AssignWithConversion("Finger Results"); + nsAutoString title; title.AssignWithConversion("Finger information for "); + nsXPIDLCString userHost; + rv = mUrl->GetPath(getter_Copies(userHost)); + title.Append(userHost); converter->SetTitle(title.GetUnicode()); converter->PreFormatHTML(PR_TRUE); } diff --git a/mozilla/netwerk/protocol/finger/src/nsFingerChannel.cpp b/mozilla/netwerk/protocol/finger/src/nsFingerChannel.cpp index 317a5d4dcd7..9cfb2e1037a 100644 --- a/mozilla/netwerk/protocol/finger/src/nsFingerChannel.cpp +++ b/mozilla/netwerk/protocol/finger/src/nsFingerChannel.cpp @@ -486,7 +486,10 @@ nsFingerChannel::OnStopRequest(nsIChannel* aChannel, nsISupports* aContext, nsCOMPtr converter(do_QueryInterface(converterListener)); if (converter) { - nsAutoString title; title.AssignWithConversion("Finger Results"); + nsAutoString title; title.AssignWithConversion("Finger information for "); + nsXPIDLCString userHost; + rv = mUrl->GetPath(getter_Copies(userHost)); + title.Append(userHost); converter->SetTitle(title.GetUnicode()); converter->PreFormatHTML(PR_TRUE); }