diff --git a/mozilla/xpfe/components/shistory/public/nsISHistory.idl b/mozilla/xpfe/components/shistory/public/nsISHistory.idl
index f6dd8854177..c67fba0df03 100644
--- a/mozilla/xpfe/components/shistory/public/nsISHistory.idl
+++ b/mozilla/xpfe/components/shistory/public/nsISHistory.idl
@@ -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 NS_OK Purging was successfull
- * NS_ERROR_FAILURE numEntries is
+ * @throws NS_SUCCESS_LOSS_OF_INSIGNIFICANT_DATA Purge was vetod.
+ * @throws NS_ERROR_FAILURE numEntries is
* invalid or out of bounds with the size of history.
*
*/
diff --git a/mozilla/xpfe/components/shistory/src/nsSHistory.cpp b/mozilla/xpfe/components/shistory/src/nsSHistory.cpp
index dc964eafd79..0334d2bc910 100644
--- a/mozilla/xpfe/components/shistory/src/nsSHistory.cpp
+++ b/mozilla/xpfe/components/shistory/src/nsSHistory.cpp
@@ -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;