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:
benjamin%smedbergs.us 2006-07-18 14:55:52 +00:00
Родитель cf7c39687b
Коммит 83da0fd798
1 изменённых файлов: 1 добавлений и 12 удалений

Просмотреть файл

@ -581,7 +581,6 @@ nsLivemarkLoadListener::TryParseAsSimpleRSS ()
// Go through the <channel>/<feed> and do what we need // Go through the <channel>/<feed> and do what we need
// with <item> or <entry> nodes // with <item> or <entry> nodes
int numMarksAdded = 0;
rv = chElement->GetFirstChild(getter_AddRefs(node)); rv = chElement->GetFirstChild(getter_AddRefs(node));
if (!node) return NS_ERROR_UNEXPECTED; if (!node) return NS_ERROR_UNEXPECTED;
@ -680,8 +679,6 @@ nsLivemarkLoadListener::TryParseAsSimpleRSS ()
linkURI, linkURI,
nsDependentString(titleStr)); nsDependentString(titleStr));
if (NS_FAILED(rv)) return rv; if (NS_FAILED(rv)) return rv;
numMarksAdded++;
} }
} }
} }
@ -692,14 +689,6 @@ nsLivemarkLoadListener::TryParseAsSimpleRSS ()
node = temp; 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; return NS_OK;
} }
@ -803,4 +792,4 @@ nsLivemarkService::UpdateLivemarkChildren(PRInt32 aLivemarkIndex)
} }
return NS_OK; return NS_OK;
} }