Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-36427

Add method exposing internal errors, warnings and messages of QtWebKit / QtWebEngine

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P2: Important
    • 5.4.0
    • 5.2.0
    • WebEngine, WebKit
    • None

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ntg Pierre Rossi
            emdek MichaƂ Dutkiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes