Bug 29390

Summary: [Qt] QWebView::urlChanged() is not emitted when the html loaded does not contain a <title> tag
Product: WebKit Reporter: Tor Arne Vestbø <vestbo>
Component: WebKit QtAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: tonikitoo
Priority: P2 Keywords: Qt
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   

Description Tor Arne Vestbø 2009-09-18 07:14:56 PDT
This bug report originated from issue QTBUG-3028
<http://bugreports.qt.nokia.com/browse/QTBUG-3028>

--- Description ---

QWebView::urlChanged() is not emitted when the html loaded does not contain a <title> tag
Comment 1 Antonio Gomes 2009-10-27 11:15:37 PDT
tested w/ trunk and it WFM

I tested it in both QtLauncher and QGVLauncher , loading "data:text/html,<h1>test" and both emitted urlChanged twice in fact.


void FrameLoaderClientQt::dispatchDidChangeLocationWithinPage()
{
  (...)
  emit m_webFrame->urlChanged(m_webFrame->url());
  m_webFrame->page()->d->updateNavigationActions();
}

void FrameLoaderClientQt::dispatchDidCommitLoad()
{
  (..)
  emit m_webFrame->urlChanged(m_webFrame->url());
  m_webFrame->page()->d->updateNavigationActions();
  (...)
}
Comment 2 Antonio Gomes 2009-10-27 11:16:13 PDT
please reopen w/ a proper TC or better bug description if it is still reproducible for you.