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

WebEngineLoadRequest::errorCode does not include HTTP error codes.

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P2: Important
    • 6.1, 6.2.5, 6.3.1, 6.4.0 Beta1
    • 5.4.1, 5.5.0 RC
    • WebEngine
    • None
    • Ubuntu x64

    • a4e32eac5c (qt/qtwebengine/dev) 7d82e53efe (qt/qtwebengine/6.2) 6ce62c241f (qt/qtwebengine/6.3) 7d82e53efe (qt/qtwebengine/6.2) 7d82e53efe (qt/qtwebengine/6.2) 7d82e53efe (qt/tqtc-qtwebengine/6.2) 6ce62c241f (qt/qtwebengine/6.3.1)

    Description

      When setting the url (as below) to somthing that should result in a 404 error the loadrequest passed to the callback does not contain any information about the error.

      When setting the url to something that results in a DNS lookup error, we do get a errorDomain and errorCode that is correct. (Probably, we did not dig into that other than seeing the domain and error being not 0)

      import QtQuick 2.4
      import QtWebEngine 1.0
      
      WebEngineView {
      
          id: browser
          width: 100
          height: 100
          url: "http://google.com/apanbepan"
      
          Component.onCompleted: {
              console.log("Webengine view loaded, dimensions : " + browser.width + "x" + browser.height )
          }
          onLoadingChanged: {
              console.log("Error Code: " + loadRequest.errorCode  + " Domain: " + loadRequest.errorDomain)
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              kiburtse Kirill Burtsev
              bbosell Bjorn Bosell
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes