Call OnTitleChange even if the title hasn't changed

Think CEF could benefit from a new feature or capability? Discuss CEF feature requests here.

Call OnTitleChange even if the title hasn't changed

Postby dshaulov » Sun Aug 18, 2013 9:16 am

Hi,

Currently, when CEF gets a notification for a title change, it checks if it is the same as the current title, and doesn't notify the client if it is.
This is happening in CefBrowserHostImpl::Observe.
Can this check be removed?

The check leads to strange cases where if we load a different page - we do not get even one notification for title change for the new url.
So if we clear the title between loads - we have no "OnTitleChange" that puts it back.
If anyone needs the check - it can be easily done on the client.

Thanks, Daniel.
dshaulov
Techie
 
Posts: 37
Joined: Sun Dec 09, 2012 10:58 am

Re: Call OnTitleChange even if the title hasn't changed

Postby magreenblatt » Sun Aug 18, 2013 11:46 am

What CEF version? Why do you clear the title between loads?
magreenblatt
Site Admin
 
Posts: 12402
Joined: Fri May 29, 2009 6:57 pm

Re: Call OnTitleChange even if the title hasn't changed

Postby dshaulov » Tue Aug 20, 2013 1:56 am

CEF3 - (almost) latest trunk.

By clear the title I mean UI-wise, We just show "Loading..." during the load.
We do not do anything CEF-related to clear it (should we? can we?).
dshaulov
Techie
 
Posts: 37
Joined: Sun Dec 09, 2012 10:58 am

Re: Call OnTitleChange even if the title hasn't changed

Postby dshaulov » Thu Aug 29, 2013 1:11 am

So.. can/should I create an issue with a patch for this?
dshaulov
Techie
 
Posts: 37
Joined: Sun Dec 09, 2012 10:58 am

Re: Call OnTitleChange even if the title hasn't changed

Postby magreenblatt » Thu Aug 29, 2013 10:11 am

dshaulov wrote:So.. can/should I create an issue with a patch for this?

Feel free to create an issue. We can use any stars that accumulate to judge the popularity of this change.
magreenblatt
Site Admin
 
Posts: 12402
Joined: Fri May 29, 2009 6:57 pm

Re: Call OnTitleChange even if the title hasn't changed

Postby dshaulov » Sun Sep 01, 2013 1:05 am

dshaulov
Techie
 
Posts: 37
Joined: Sun Dec 09, 2012 10:58 am

Re: Call OnTitleChange even if the title hasn't changed

Postby Czarek » Sun Sep 01, 2013 5:38 am

Have you considered changing icon instead of title during loading? This is how browsers do it.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Call OnTitleChange even if the title hasn't changed

Postby dshaulov » Mon Sep 02, 2013 2:58 am

Czarek wrote:Have you considered changing icon instead of title during loading? This is how browsers do it.


This not really a solution..
Changing UI because of small technical reasons (deleting 2 lines of code) is not OK.
dshaulov
Techie
 
Posts: 37
Joined: Sun Dec 09, 2012 10:58 am


Return to Feature Request Forum

Who is online

Users browsing this forum: No registered users and 9 guests