Clear history TChromium

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

Clear history TChromium

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

Hi,

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.

thanks



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

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

Re: Clear history TChromium

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

Hi,

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 :
https://bitbucket.org/chromiumembedded/cef/pull-requests/19/add-the-ability-to-clear-session-history/diff

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

Read this forum thread for more info :
https://www.briskbard.com/forum/viewtopic.php?t=684

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