23485: make it possible for urlbar to go to urls spanning multiple lines. r=jfrancis

This commit is contained in:
akkana@netscape.com
2000-08-28 22:15:03 +00:00
parent 5597967a3a
commit 8f347ca810
5 changed files with 21 additions and 10 deletions

View File

@@ -2838,6 +2838,9 @@ NS_IMETHODIMP nsDocShell::CreateFixupURI(const PRUnichar* aStringURI,
nsAutoString uriString(aStringURI);
uriString.Trim(" "); // Cleanup the empty spaces that might be on each end.
// Eliminate embedded newlines, which single-line text fields now allow:
uriString.StripChars("\r\n");
// XXX nasty hack to check for the view-source: prefix
//
// The long term way and probably CORRECT way to do this is to write a