mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 18:26:15 +00:00
Bug 320737: Live Bookmark success is not failure, patch by Phil Ringnalda <bugzilla@philringnalda.com>, r=annie.sullivan+vlad
Original committer: gavin%gavinsharp.com Original revision: 1.2 Original date: 2005/12/21 00:42:33
This commit is contained in:
parent
4a00582d75
commit
99768f60b3
@ -581,7 +581,6 @@ nsLivemarkLoadListener::TryParseAsSimpleRSS ()
|
||||
|
||||
// Go through the <channel>/<feed> and do what we need
|
||||
// with <item> or <entry> nodes
|
||||
int numMarksAdded = 0;
|
||||
|
||||
rv = chElement->GetFirstChild(getter_AddRefs(node));
|
||||
if (!node) return NS_ERROR_UNEXPECTED;
|
||||
@ -680,8 +679,6 @@ nsLivemarkLoadListener::TryParseAsSimpleRSS ()
|
||||
linkURI,
|
||||
nsDependentString(titleStr));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
numMarksAdded++;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -692,14 +689,6 @@ nsLivemarkLoadListener::TryParseAsSimpleRSS ()
|
||||
node = temp;
|
||||
}
|
||||
|
||||
|
||||
if (numMarksAdded > 0) {
|
||||
// if no items were found, return NS_ERROR_FAILURE so that
|
||||
// the RDF parser can be tried.
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
// return NS_OK if items were found so that the RDF parser isn't tried.
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@ -803,4 +792,4 @@ nsLivemarkService::UpdateLivemarkChildren(PRInt32 aLivemarkIndex)
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user