Workaround for problem in PromiseFlatString class. b=108880 r=adamlock@netscape.com sr=scc@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@107608 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -80,12 +80,12 @@ nsDefaultURIFixup::CreateFixupURI(const PRUnichar *aStringURI, PRUint32 aFixupFl
|
||||
{
|
||||
nsCOMPtr<nsIURI> uri;
|
||||
PRUint32 newFixupFlags = aFixupFlags & ~FIXUP_FLAG_ALLOW_KEYWORD_LOOKUP;
|
||||
nsresult rv = CreateFixupURI(
|
||||
PromiseFlatString(Substring(uriString,
|
||||
12,
|
||||
uriString.Length() - 12)).get(),
|
||||
newFixupFlags,
|
||||
getter_AddRefs(uri));
|
||||
|
||||
nsAutoString tempString;
|
||||
tempString = Substring(uriString, 12, uriString.Length() - 12);
|
||||
nsresult rv = CreateFixupURI(tempString.get(),
|
||||
newFixupFlags,
|
||||
getter_AddRefs(uri));
|
||||
if (NS_FAILED(rv) || !uri)
|
||||
return NS_ERROR_FAILURE;
|
||||
nsXPIDLCString spec;
|
||||
|
||||
Reference in New Issue
Block a user