Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Akregator
Commits
01a54bcb
Commit
01a54bcb
authored
Mar 31, 2021
by
Laurent Montel
😁
Browse files
Fix support with block external ref
parent
48445fb4
Pipeline
#56100
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/articleviewer-ng/webengine/articleviewerwebengine.cpp
View file @
01a54bcb
...
...
@@ -69,7 +69,9 @@ ArticleViewerWebEngine::ArticleViewerWebEngine(KActionCollection *ac, QWidget *p
:
WebEngineViewer
::
WebEngineView
(
parent
)
,
mActionCollection
(
ac
)
{
#ifndef HAVE_BLOCK_SUPPORT
mNetworkAccessManager
=
new
WebEngineViewer
::
InterceptorManager
(
this
,
ac
,
this
);
#endif
mPageEngine
=
new
ArticleViewerWebEnginePage
(
this
);
QWebEngineProfile
*
profile
=
mPageEngine
->
profile
();
profile
->
setPersistentCookiesPolicy
(
QWebEngineProfile
::
ForcePersistentCookies
);
...
...
@@ -80,7 +82,9 @@ ArticleViewerWebEngine::ArticleViewerWebEngine(KActionCollection *ac, QWidget *p
profile
->
setUrlRequestInterceptor
(
webEngineUrlInterceptor
);
#endif
setPage
(
mPageEngine
);
#ifdef HAVE_BLOCK_SUPPORT
mNetworkAccessManager
=
new
WebEngineViewer
::
InterceptorManager
(
this
,
ac
,
this
);
auto
*
externalReference
=
new
WebEngineViewer
::
LoadExternalReferencesUrlInterceptor
(
this
);
// connect(externalReference, &MessageViewer::LoadExternalReferencesUrlInterceptor::urlBlocked, this, &MailWebEngineView::urlBlocked);
mNetworkAccessManager
->
addInterceptor
(
externalReference
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment