Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Clear history TChromium

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

Re: Clear history TChromium

Post by salvadordf »

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/ ... story/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