Details
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
For Gerrit Dashboard: QTBUG-117867 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
512396,2 | Reinstall URLRequestInterceptors during new view adoptation | dev | qt/qtwebengine | Status: MERGED | +2 | 0 |
515748,2 | Reinstall URLRequestInterceptors during new view adoptation | 6.6 | qt/qtwebengine | Status: MERGED | +2 | 0 |