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

WebView sends extra urlChanged signals for invalid URL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.6.1
    • 5.5.1, 5.6.0
    • WebEngine
    • None
    • Qt 5.5.1
      Ubuntu Linux
    • f22435da983a9e0070ef9c969bb9aa8c1191c0a6

      See example attached.

      When the QML WebEngineView URL is set to an invalid URL, it sends an extra urlChanged signal for the original URL before sending the urlChanged signal for the new URL. This only happens with an invalid (cannot be resolved) URL.

      Expected result (stdout):
      qml: webView.url changed http://firsturla9sdjf90j345r90jsdf90sjdf90jasdfsdf.com/
      qml: webView.url changed http://secondurladfjsdf90j234a5r9jsdfsdfsdaf.com/

      Actual result (stdout):
      qml: webView.url changed http://firsturla9sdjf90j345r90jsdf90sjdf90jasdfsdf.com/
      qml: webView.url changed http://firsturla9sdjf90j345r90jsdf90sjdf90jasdfsdf.com/
      qml: webView.url changed http://secondurladfjsdf90j234a5r9jsdfsdfsdaf.com/

        For Gerrit Dashboard: QTBUG-48995
        # Subject Branch Project Status CR V

            kadam Adam Kallai
            mpnolan Mike Nolan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes