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:
@@ -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.
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user