diff options
| author | Michael BrĂ¼ning <michael.bruning@qt.io> | 2023-08-24 13:23:58 +0200 |
|---|---|---|
| committer | Michael BrĂ¼ning <michael.bruning@qt.io> | 2023-08-24 20:32:59 +0200 |
| commit | 614c78c6385f6503dce597407c30fb63fa1de451 (patch) | |
| tree | af009d8c3d293a21f41883ea22bbd9b3e31ada63 /src/core/api/qwebengineprofile.cpp | |
| parent | 8b20e0636a89dc3e6b06d174286ee16aa427887a (diff) | |
Remove QWebEngineUrlResponseInterceptor API
It has been found to not have any real effect, therefore, we remove it
again to not release a non-functional API and create false expectations
in users.
This reverts commits
3f5de5fab74e6c152cdf5d04f3d893feaa31790b
ab21f39c6a54be331dd8a155d3374bfe790e0274 (parts)
082eef1916a86d6d5e0c751d271c7c8a1a5e457d
5e257fb57a211f95556ec387fe6f262a60cbb6fe
Pick-to: 6.6
Task-number: QTBUG-61071
Change-Id: Ifb33e32128e77dfffed863a1a7501ba21796692d
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/api/qwebengineprofile.cpp')
| -rw-r--r-- | src/core/api/qwebengineprofile.cpp | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/src/core/api/qwebengineprofile.cpp b/src/core/api/qwebengineprofile.cpp index 0330ad951..2124afedf 100644 --- a/src/core/api/qwebengineprofile.cpp +++ b/src/core/api/qwebengineprofile.cpp @@ -62,12 +62,9 @@ using QtWebEngineCore::ProfileAdapter; The default profile can be accessed by defaultProfile(). It is a built-in profile that all web pages not specifically created with another profile belong to. - You can implement interceptor interfaces for URL requests and responses and register them - on a profile to intercept, block, or modify URL requests before they reach the networking - stack of Chromium or response headers right after they come off the networking stack of - Chromium. For requests, implement QWebEngineUrlRequestInterceptor and register it via - setUrlRequestInterceptor(). For response headers, implement QWebEngineUrlResponseInterceptor - and register it via setUrlResponseInterceptor(). + Implementing the QWebEngineUrlRequestInterceptor interface and registering the interceptor on a + profile by setUrlRequestInterceptor() enables intercepting, blocking, and modifying URL + requests (QWebEngineUrlRequestInfo) before they reach the networking stack of Chromium. A QWebEngineUrlSchemeHandler can be registered for a profile by installUrlSchemeHandler() to add support for custom URL schemes. Requests for the scheme are then issued to @@ -622,21 +619,6 @@ void QWebEngineProfile::setUrlRequestInterceptor(QWebEngineUrlRequestInterceptor } /*! - Registers a response interceptor singleton \a interceptor to intercept URL response headers. - - The profile does not take ownership of the pointer. - - \since 6.6 - \sa QWebEngineUrlResponseInterceptor -*/ - -void QWebEngineProfile::setUrlResponseInterceptor(QWebEngineUrlResponseInterceptor *interceptor) -{ - Q_D(QWebEngineProfile); - d->profileAdapter()->setResponseInterceptor(interceptor); -} - -/*! Clears all links from the visited links database. \sa clearVisitedLinks() |
