summaryrefslogtreecommitdiffstats
path: root/src/core/web_contents_delegate_qt.cpp
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-03-21 17:34:21 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-24 16:05:43 +0100
commit75aa1821d151f2103abece4942624104426e0c17 (patch)
treebdaae9e529eb5b45188e82ff47a3629b41f7ab74 /src/core/web_contents_delegate_qt.cpp
parentf06cb10ce5a6d543d97bd05484179f56b60e6e5a (diff)
Fix a missing titleChanged signal on navigation
WebContentsView::SetPageTitle is only called when the Blink page updated its title. For navigations we have to listen for NavigationStateChanged. Also update the history test to check this case. Change-Id: Ia89c61b32913d647a63b2fb9a4cdf3f6867c4f0c Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Diffstat (limited to 'src/core/web_contents_delegate_qt.cpp')
-rw-r--r--src/core/web_contents_delegate_qt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/web_contents_delegate_qt.cpp b/src/core/web_contents_delegate_qt.cpp
index e57ee4890..30497e5de 100644
--- a/src/core/web_contents_delegate_qt.cpp
+++ b/src/core/web_contents_delegate_qt.cpp
@@ -63,6 +63,8 @@ void WebContentsDelegateQt::NavigationStateChanged(const content::WebContents* s
{
if (changed_flags & content::INVALIDATE_TYPE_URL)
m_viewClient->urlChanged(toQt(source->GetVisibleURL()));
+ if (changed_flags & content::INVALIDATE_TYPE_TITLE)
+ m_viewClient->titleChanged(toQt(source->GetTitle()));
}
void WebContentsDelegateQt::AddNewContents(content::WebContents* source, content::WebContents* new_contents, WindowOpenDisposition disposition, const gfx::Rect& initial_pos, bool user_gesture, bool* was_blocked)