Clear history TChromium

Post Reply
Posts: 3
Joined: Fri Sep 27, 2019 8:47 am

Clear history TChromium

Post by morgan » Fri Sep 27, 2019 8:57 am


I wanted to know if there was the possibility to delete the browsing history of the browser?
Like a ClearHistory () function that resets the navigation information and therefore we can not go back to the previous pages visited.


ps: sorry I posted the same message in BriskBard. While I wanted to put it here.

User avatar
Posts: 2495
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain

Re: Clear history TChromium

Post by salvadordf » Fri Sep 27, 2019 9:49 am


There's no "ClearHistory" function in CEF currently.

There was a pull request to add the ability to clear the session history when calling LoadURL :

..but it had conflicts and it was declined some years later.

Read this forum thread for more info :

You have 2 solutions :
  • Keep your own session history and use TChromium.OnBeforeBrowse to block the user when he/she tries to navigate to certain URL.
  • Update and submit the previous PR in the CEF project. The CEF project maintainer always say that all PRs are welcome! :)

Post Reply