Details
-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
5.6.0
-
None
-
Windows 7 Qt 5.6.0 msvc 2013
Description
When you want to implement the function QWebEngineUrlRequestInterceptor::interceptRequest, you get an object QWebEngineUrlRequestInfo as parameter. The NavigationType member of this object is not properly set for links clicked by the user.
If you try to intercept only the requests made by a user when he clicks on a link, then you want to test that QWebEngineUrlRequestInfo::navigationType() == NavigationTypeLink. If you do that then you will realize that you can intercept clicked links requests but you will also intercept all resources loaded by the webpage (ie images, js scripts, css scripts etc ....)
I think that it's an issue because the description of the QWebEngineUrlRequestInfo::NavigationTypeLink enum value is "Navigation initiated by clicking a link".
Attachments
Issue Links
- duplicates
-
QTBUG-56805 QWebEnginePage::acceptNavigationRequest always has type==NavigationTypeLinkClicked
-
- Closed
-