From bd1330b48107db6a00e58151335cfbb0502323ea Mon Sep 17 00:00:00 2001 From: "reed%reedloden.com" Date: Tue, 11 Dec 2007 09:55:35 +0000 Subject: [PATCH] Bug 393002 - ""Server not found" message for view-source window doesn't display server name" [p=anant@kix.in (Anant Narayanan) r=bsmedberg sr=bzbarsky a1.9=damons] git-svn-id: svn://10.0.0.236/trunk@240815 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsDocShell.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index 8dd21673891..50194966062 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -2952,7 +2952,8 @@ nsDocShell::DisplayLoadError(nsresult aError, nsIURI *aURI, NS_ENSURE_ARG_POINTER(aURI); // Get the host nsCAutoString host; - aURI->GetHost(host); + nsCOMPtr innermostURI = NS_GetInnermostURI(aURI); + innermostURI->GetHost(host); CopyUTF8toUTF16(host, formatStrs[0]); formatStrCount = 1; error.AssignLiteral("dnsNotFound");