Bug 121730 Add number of entries actually removed from sHistory when using PurgeHistory()

r=bz sr=bz


git-svn-id: svn://10.0.0.236/trunk@160455 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mozdev.org
2004-08-06 19:34:21 +00:00
parent 3ea574056d
commit b13cd5f163
2 changed files with 3 additions and 3 deletions

View File

@@ -113,8 +113,8 @@ interface nsISHistory: nsISupports
* purged from history. During purge operation,
* the latest documents are maintained and older
* 'numEntries' documents are removed from history.
* @return <code>NS_OK</code> Purging was successfull
* <code>NS_ERROR_FAILURE</code> numEntries is
* @throws <code>NS_SUCCESS_LOSS_OF_INSIGNIFICANT_DATA</code> Purge was vetod.
* @throws <code>NS_ERROR_FAILURE</code> numEntries is
* invalid or out of bounds with the size of history.
*
*/

View File

@@ -389,7 +389,7 @@ nsSHistory::PurgeHistory(PRInt32 aEntries)
if (!purgeHistory) {
// Listener asked us not to purge
return NS_OK;
return NS_SUCCESS_LOSS_OF_INSIGNIFICANT_DATA;
}
PRInt32 cnt = 0;