QtWebKit does not report JS errors(exceptions) thrown from JavaScript signal handlers with QWebPage::javaScriptConsoleMessage.
Steps to reproduce:
1. Create QtWebKit application which uses your custom WebPage class derived from QWebPage.
2. Override javaScriptConsoleMessage method in your WebPage and log incoming messages to console.
3. Confirm you get javaScriptConsoleMessage callbacks on JS errors.
4. Make some QObject instance (any object which has any signal) accessible from JS (use addToJavaScriptWindowObject call) ("myObject" object with "somethingChanged" signal, for instance)
5. From JS connect handler(JS function) to the signal
6. Make some error in the handler code (refer to undeclared variable "a", for instance)
7. Emit the signal in your C++ code
Expected results:
- JS error gets logged to console (ReferenceError: Can't find variable: a)
Actual results:
- JS error does not get to logged (javaScriptConsoleMessage callback does not get called)