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

QWebEngineUrlRequestInfo::redirect is failing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • 5.15.0, 5.15.1, 5.15.2
    • WebEngine
    • None
    • Windows

    Description

      As we're trying to upgrade from 5.14.1 to 5.15.x, we're running into an issue where the redirect call is failing. We're using PySide2. Using the request module directly fixes the issue.

      We're passing an QWebEngineUrlRequestInterceptor to the QWebEngineProfile, which allows us to redirect the response of our webapp to a different port. The code of our interceptRequest() call looks like this:

      def interceptRequest(self,info):
           url = info.requestUrl()
           if self.isRedirect(info) and self.myIDRedirectURI in url.toString():
                url.setPort(self.listenerPort)
                info.redirect(url)

      Which works fine in 5.14.1, but fails in 5.15.x (we haven't tried 6 yet)

      Attachments

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

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            esmolikowski Eric Smolikowski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes