WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
109288
[Qt] After the web process crashes and is restarted, WebView.experimental.onMessageReceived is not invoked anymore
https://bugs.webkit.org/show_bug.cgi?id=109288
Summary
[Qt] After the web process crashes and is restarted, WebView.experimental.onM...
Olivier Tilloy
Reported
2013-02-08 05:21:13 PST
Created
attachment 187295
[details]
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.
Attachments
minimal standalone example to reproduce the bug
(1.19 KB, text/x-qml)
2013-02-08 05:21 PST
,
Olivier Tilloy
no flags
Details
Patch
(1.74 KB, patch)
2013-06-07 20:53 PDT
,
Lamarque V. Souza
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Lamarque V. Souza
Comment 1
2013-06-07 20:53:54 PDT
Created
attachment 204083
[details]
Patch Proposed patch
Anders Carlsson
Comment 2
2013-10-02 21:33:13 PDT
Comment on
attachment 204083
[details]
Patch Qt has been removed, clearing review flags.
Jocelyn Turcotte
Comment 3
2014-02-03 03:24:59 PST
=== Bulk closing of Qt bugs === If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary. If you believe that this is still an important QtWebKit bug, please fill a new report at
https://bugreports.qt-project.org
and add a link to this issue. See
http://qt-project.org/wiki/ReportingBugsInQt
for additional guidelines.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug