[Webkit-unassigned] [Bug 109288] New: [Qt] After the web process crashes and is restarted, WebView.experimental.onMessageReceived is not invoked anymore
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Feb 8 05:19:04 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=109288
Summary: [Qt] After the web process crashes and is restarted,
WebView.experimental.onMessageReceived is not invoked
anymore
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Linux
Status: UNCONFIRMED
Severity: Normal
Priority: P3
Component: WebKit Qt
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: olivier at tilloy.net
Created an attachment (id=187295)
--> (https://bugs.webkit.org/attachment.cgi?id=187295&action=review)
minimal standalone example to reproduce the bug
This issue is observed with the QML WebView component from QtWebkit 5.0.0 in Ubuntu 12.10.
libqt5webkit5-qmlwebkitplugin version 5.0.0-0ubuntu1~quantal1~test5~withdebug~gstabs~patches installed from https://launchpad.net/~canonical-qt5-edgers/+archive/qt5-proper. According to the source package, the corresponding version of webkit is revision 136242 from trunk.
I’m injecting some javascript into the document using experimental.evaluateJavaScript(…), the code injected calls navigator.qt.postMessage(…) to send messages back to the QML side, and on the QML side I’m getting the messages in the experimental.onMessageReceived(…) slot.
This works nicely, until the web process crashes. If I refresh the page, the web process is restarted, and the code is injected, but I’m not getting the messages on the QML side anymore: experimental.onMessageReceived(…) is never invoked again.
I’ve written a minimal standalone example which I’m attaching here.
Steps to reproduce the issue:
1) open the QML script from a terminal with qmlscene
2) observe that when the page is loaded, the message "MESSAGE: hello QML" is printed out to the console
3) click on the refresh button, and observe that the page is reloaded, and the same message is printed out again to the console
4) in another terminal window, issue `killall QtWebProcess`
5) click on the refresh button, observe that the page is reloaded, but the message is not printed out to the console
Please let me know if I can provide more useful/detailed information to help fix the issue.
--
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