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

QWebEngineUrlSchemeHandler, ajax and request return code.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.13.2, 5.14.0, 5.14.1, 5.15.4
    • 5.12.4
    • WebEngine
    • None
    • Fedora 30 using default installed Qt (5.12.4). QtCreator installed from the official Qt binary.
      But it is probably not related to the environment.
    • All
    • e31acc86e991d6f83bd56eebb7371914fc9ca5ac (qt/qtwebengine/5.13)

    Description

      It seems that requests using a custom scheme (and a custom QWebEngineUrlSchemeHandler) have no return status code.

      Using the simple sample attached program.

      When running it with `QTWEBENGINE_REMOTE_DEBUGGING=9090` and connecting to localhost:9090. We can see that network request are 0B len and there is no request or response header.

      While it works for most of the request, it seems that, for ajax requests, the response `status` is never changed and is keep to 0. So the classical ajax test `this.readyState == 4 && this.status == 200` is never true.

      If requesting the url `http://localhost:8080/index.html` (and serving the same content using a local server), everything works (ajax response status is set to 200, remote debugging show correct response status code/headers for the requests)

      Attachments

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

        Activity

          People

            juri.valdmann Jüri Valdmann (Inactive)
            mgautierfr mgautierfr
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes