How to get history URL? (CEF3)

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

How to get history URL? (CEF3)

Postby CantStop0708 » Thu Dec 26, 2013 7:24 am

Hi!
So the CefBrowser class has GoBack() and GoForward() methods for history navigating. But i need to know the "go back" URL before the navigating. How can i retrieve it?
CantStop0708
Mentor
 
Posts: 60
Joined: Mon Jan 21, 2013 4:10 am

Re: How to get history URL? (CEF3)

Postby punamg » Mon May 25, 2015 2:47 am

Hi,

I have the same query. I want to know the URL I am "going-back" to.Any update on this?
punamg
Techie
 
Posts: 43
Joined: Thu Dec 05, 2013 6:00 am

Re: How to get history URL? (CEF3)

Postby magreenblatt » Mon May 25, 2015 11:48 am

CefBrowserHost::GetNavigationEntries was added in https://bitbucket.org/chromiumembedded/cef/issue/1442/
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: How to get history URL? (CEF3)

Postby punamg » Tue May 26, 2015 6:46 am

Thank you Marshal for your reply.

Also, if i dont want to add a URL to the history, or delete a URL from the history list, is there any way to do it?


With Regards
Punam
punamg
Techie
 
Posts: 43
Joined: Thu Dec 05, 2013 6:00 am

Re: How to get history URL? (CEF3)

Postby magreenblatt » Tue May 26, 2015 11:26 am

punamg wrote:Also, if i dont want to add a URL to the history, or delete a URL from the history list, is there any way to do it?

See https://developer.mozilla.org/en-US/doc ... er_history
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: How to get history URL? (CEF3)

Postby punamg » Wed May 27, 2015 12:18 am

Hi Marshal,

Thank you for sharing the link. I went through it but I am unable to do any changes to the "window.history" object. Looks like this object has "read-only" access.
This link speaks more details about it http://stackoverflow.com/questions/821511/manipulate-the-session-history-with-javascript


With Regards
Punam
punamg
Techie
 
Posts: 43
Joined: Thu Dec 05, 2013 6:00 am

Re: How to get history URL? (CEF3)

Postby magreenblatt » Wed May 27, 2015 11:39 am

magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: How to get history URL? (CEF3)

Postby punamg » Mon Jun 01, 2015 1:00 am

Hi Marshal,

I went through the link you shared above. I cant exactly find the api LoadURL/LoadURLWithParams . LoadRequest API takes an instance of CefRequest and in that class i did not find any parameter to clear the history. Please help.

Marshal Basically i have 2 requirements around history management :
1. Clear the history
2. Avoid adding a particular URL to the history.

For both I wanted to know how to do it. Please help.

Regards,
Punam
punamg
Techie
 
Posts: 43
Joined: Thu Dec 05, 2013 6:00 am

Re: How to get history URL? (CEF3)

Postby punamg » Tue Jun 02, 2015 11:19 pm

Please help. !! I urgently need to know a fix for this.
punamg
Techie
 
Posts: 43
Joined: Thu Dec 05, 2013 6:00 am

Re: How to get history URL? (CEF3)

Postby magreenblatt » Wed Jun 03, 2015 8:25 am

You cannot currently clear the history. However, you can block history-related navigations in CefRenderProcessHandler::OnBeforeNavigation by checking the |navigation_type| parameter and returning true if the type is NAVIGATION_BACK_FORWARD.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Next

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 117 guests

cron