Description
It would be nice to have method similar to:
void QWebPage::javaScriptConsoleMessage(const QString & message, int lineNumber, const QString & sourceID) [virtual protected]
But exposing internal errors, warnings and messages (those that are normally shown in error consoles of web browsers).
It could be something like this:
void QWebPage::consoleMessage(MessageCategory category, MessageType type, const QString & message, int lineNumber, const QString & sourceID) [virtual protected]
Where category would be enum pointing to specififc category (like CSS, JS, network, security, other) and type would be enum with values like error, warning and message.
In case of QtWebEngine it could simply replace javaScriptConsoleMessage(), in case of QtWebKit that method could be marked as deprecated.