mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 07:34:20 +00:00
Fix RTM++ bug # 52789: history window sorting on URL fix. r=waterson sr=scc
This commit is contained in:
parent
68b25bccc6
commit
71429f3911
@ -929,8 +929,10 @@ nsGlobalHistory::GetTarget(nsIRDFResource* aSource,
|
||||
return CallQueryInterface(referrer, aTarget);
|
||||
}
|
||||
else if (aProperty == kNC_URL) {
|
||||
// URL. This is just a self-referring arc.
|
||||
return CallQueryInterface(aSource, aTarget);
|
||||
nsCOMPtr<nsIRDFLiteral> uriLiteral;
|
||||
rv = gRDFService->GetLiteral(NS_ConvertUTF8toUCS2(uri), getter_AddRefs(uriLiteral));
|
||||
if (NS_FAILED(rv)) return(rv);
|
||||
return CallQueryInterface(uriLiteral, aTarget);
|
||||
}
|
||||
else {
|
||||
NS_NOTREACHED("huh, how'd I get here?");
|
||||
|
Loading…
x
Reference in New Issue
Block a user