Hello, In my embedded app, I've added a button to the UI to clear the history for a particular session/tab. My code gets the correct instance of nsIWebNavigation, gets the Session History object and then calls Purge(on the SessionHistory object) passing in the total number of entries . No errors occur, but the next time I get the Session History from the nsIWebNavigation object, it has the same number of entries as it did before the purge. I expected it to be empty. What am I doing wrong? Is there an easier/different way to do it? Here is my code snippet:
nsCOMPtr<nsISHistory> history; nsresult rv=mWebNavigation->GetSessionHistory(getter_AddRefs(history)); PRInt32 count=0; rv=history->GetCount(&count); rv=history->PurgeHistory(count); Thanks, Bill _______________________________________________ mozilla-embedding mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-embedding
