summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-02 07:55:57 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-02 07:55:57 (GMT)
commitfb6b70c4d7b9f1b7f384e189e11425ed2576675e (patch)
treea7945242e037b0e16fba5811cd11a516ec3939e2
parent730b8725b48ae7ee235d7212a2b3766bf0d19f9d (diff)
Make it more secure
-rw-r--r--messageviewer/src/viewer/webengine/blockexternalresourcesurlinterceptor/blockexternalresourcesurlinterceptor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/messageviewer/src/viewer/webengine/blockexternalresourcesurlinterceptor/blockexternalresourcesurlinterceptor.cpp b/messageviewer/src/viewer/webengine/blockexternalresourcesurlinterceptor/blockexternalresourcesurlinterceptor.cpp
index d186ccb..2f306cd 100644
--- a/messageviewer/src/viewer/webengine/blockexternalresourcesurlinterceptor/blockexternalresourcesurlinterceptor.cpp
+++ b/messageviewer/src/viewer/webengine/blockexternalresourcesurlinterceptor/blockexternalresourcesurlinterceptor.cpp
@@ -54,7 +54,9 @@ bool BlockExternalResourcesUrlInterceptor::interceptRequest(QWebEngineUrlRequest
Q_EMIT formSubmittedForbidden();
return true;
} else if (navigationType == QWebEngineUrlRequestInfo::NavigationTypeReload ||
- navigationType == QWebEngineUrlRequestInfo::NavigationTypeTyped) {
+ navigationType == QWebEngineUrlRequestInfo::NavigationTypeTyped ||
+ navigationType == QWebEngineUrlRequestInfo::NavigationTypeBackForward ||
+ navigationType == QWebEngineUrlRequestInfo::NavigationTypeOther) {
return true;
}
return false;