The rv was actually NS_SUCCESS_LOSS_OF_INSIGNIFICANT_DATA. I tracked it down 
and the problem was my nsISHistoryListener was incorrectly returning false, 
so the purge was never happening. After fixing this, everything works as 
expected. Thanks for the help.

Bill

"Boris Zbarsky" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Bill Filler wrote:
>>   nsresult rv=mWebNavigation->GetSessionHistory(getter_AddRefs(history));
>>   PRInt32 count=0;
>>   rv=history->GetCount(&count);
>>   rv=history->PurgeHistory(count);
>
> That should work.  What's the exact rv of PurgeHistory?  Is it NS_OK?
>
> -Boris 


_______________________________________________
mozilla-embedding mailing list
mozilla-embedding@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to