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

QWebEngineNewWindowRequest::openIn() breaks page interceptor

XMLWordPrintable

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

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes