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

QWebEngineNewWindowRequest::openIn() breaks page interceptor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.6.1, 6.7.0 FF
    • 6.5.3, 6.6
    • WebEngine
    • None
    • d2f119a94 (dev), c72382818 (6.6)

    Description

      When a QWebEnginePage has already a QWebEngineUrlRequestInterceptor set on it, calling QWebEngineNewWindowRequest::openIn(), inside a QWebEnginePage::newWindowRequested signal handler, breaks the interceptor i.e. the interceptor will not intercept any request on the page.

      The issues does not occur when using QWebEnginePage::createWindow().

      The issue can be mitigated by calling again QWebEnginePage::setUrlRequestInterceptor() just after QWebEngineNewWindowRequest::openIn().

      See attached zip for a reproducible example

      Attachments

        1. test_interceptor.zip
          1 kB
          Benjamin Terrier
        For Gerrit Dashboard: QTBUG-117867
        # Subject Branch Project Status CR V

        Activity

          People

            davidsz Szabolcs David
            bterrier Benjamin Terrier
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes