Bug 390171 clearing history for a host can delete annotations (r=sspitzer, a=mconnor)

This commit is contained in:
dietrich@mozilla.com 2007-07-30 20:30:52 -07:00
parent 3d8d17906c
commit fc4cea3261

View File

@ -2746,7 +2746,7 @@ nsNavHistory::RemovePagesFromHost(const nsACString& aHost, PRBool aEntireDomain)
// delete annotations (except EXPIRE_NEVER)
rv = mDBConn->ExecuteSimpleSQL(NS_LITERAL_CSTRING(
"DELETE FROM moz_annos WHERE place_id NOT IN (") +
deletedPlaceIdsBookmarked + NS_LITERAL_CSTRING(")"));
deletedPlaceIdsWithAnno + NS_LITERAL_CSTRING(")"));
NS_ENSURE_SUCCESS(rv, rv);
// finally, delete the actual moz_places records that are