Fix for bug # 58216 r/sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@178078 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
179a70e545
commit
422ca099f8
@ -530,17 +530,13 @@ nsSHistory::CompareSHEntry(nsISHEntry * aPrevEntry, nsISHEntry * aNextEntry, nsI
|
||||
|
||||
PRBool result = PR_FALSE;
|
||||
nsCOMPtr<nsIURI> prevURI, nextURI;
|
||||
PRUint32 prevID, nextID;
|
||||
|
||||
aPrevEntry->GetURI(getter_AddRefs(prevURI));
|
||||
aNextEntry->GetURI(getter_AddRefs(nextURI));
|
||||
|
||||
// If one of the URIs is not available, then the entries are not
|
||||
// equal...
|
||||
if (!prevURI || !nextURI)
|
||||
return PR_FALSE;
|
||||
|
||||
prevURI->Equals(nextURI, &result);
|
||||
if (!result) {
|
||||
aPrevEntry->GetID(&prevID);
|
||||
aNextEntry->GetID(&nextID);
|
||||
|
||||
// Check the IDs to verify if the pages are different.
|
||||
if (prevID != nextID) {
|
||||
*aDSResult = aParent;
|
||||
*aSHEResult = aNextEntry;
|
||||
NS_IF_ADDREF(*aSHEResult);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user