[Webkit-unassigned] [Bug 61104] New: [Qt] Signals are not emitted from WebView.onLoadStarted handler when web page is initially loaded.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed May 18 19:11:05 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=61104
Summary: [Qt] Signals are not emitted from
WebView.onLoadStarted handler when web page is
initially loaded.
Product: WebKit
Version: 420+
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P3
Component: New Bugs
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: damian.jansen at nokia.com
Created an attachment (id=94028)
--> (https://bugs.webkit.org/attachment.cgi?id=94028&action=review)
App demonstrating onLoadStarted signal bug
The initial onLoadStarted signal emitted from QML that WebView is loading is never sent to C++.
If the page contains links and a link is pressed, then the loadStarted(QUrl) signal is properly emitted to C++ and caught by the slot.
In QML:
signal loadStarted(url address)
WebView { id: webcontent; url: "http://www.nokia.com"
onLoadStarted: { main.loadStarted(url); console.log("Loading started (QML)") }
onLoadFinished: main.loadFinished(url) }
In C++:
QObject::connect(rootItem, SIGNAL(loadStarted(QUrl)),
this, SLOT(onWebLoadStarted(QUrl)));
...
void SomeObject::onWebLoadStarted(const QUrl &url) { qDebug() << "Webload started: " << url; }
The attached app will print to console:
"Loading started (QML)"
"Webload finished: QUrl( "http://www.nokia.com/" )
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list