Bug 29390 - [Qt] QWebView::urlChanged() is not emitted when the html loaded does not contain a <title> tag
Summary: [Qt] QWebView::urlChanged() is not emitted when the html loaded does not cont...
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords: Qt
Depends on:
Blocks:
 
Reported: 2009-09-18 07:14 PDT by Tor Arne Vestbø
Modified: 2009-10-27 11:16 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.