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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Get Browser Navigation Entries

Post Reply
mike2k
Posts: 22
Joined: Wed Jan 24, 2018 2:56 pm

Get Browser Navigation Entries

Post by mike2k »

Hi,

Thanks for your work on this project.

I've looked at the source and demos, and I can't get browser navigation entries.
Could you please advice how to access GetNavigationEntries or GetNavigationEntriesProc?

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

Re: Get Browser Navigation Entries

Post by salvadordf »

Hi,

Please, download CEF4Delphi again.

I just added the TChromium.GetNavigationEntries procedure to get the navigation entries in the TChromium.OnNavigationVisitorResultAvailable event.

Run the MiniBrowser demo, navigate to several web sites, right-click and select the "Get navigation entries" option.

That option calls TChromium.GetNavigationEntries and all the navigation entries will be available in the TChromium.OnNavigationVisitorResultAvailable event. When it reaches the last entry it will show the URLs in a simple text viewer.

For more information about the navigation entry, the TChromium.GetNavigationEntries function and the visitor used to get the entries read these web pages :
https://magpcss.org/ceforum/apidocs3/pr ... Entry.html
https://magpcss.org/ceforum/apidocs3/pr ... r%3E,bool)
https://magpcss.org/ceforum/apidocs3/pr ... sitor.html
mike2k
Posts: 22
Joined: Wed Jan 24, 2018 2:56 pm

Re: Get Browser Navigation Entries

Post by mike2k »

Thanks salvadordf, it works really well.

I've set cookies, cache, user data to a local folder, but only the navigation from current session is shown.
I expected this to return the navigation entries from previous application run, like a browsing history. I thought CEF stores them in "Cache\Visited Links" file. Probably I misunderstood :) or do you know a way to get browsing history, or if it's even stored in Chromium Cache files anywhere?

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

Re: Get Browser Navigation Entries

Post by salvadordf »

Sincerely, I don't know if that information is available.

This is the only way to read the CEF navigation history and I don't use it in BriskBard. I use a custom made browser history to be in control of what is stored and for how long.
Post Reply