summaryrefslogtreecommitdiffstats
path: root/src/core/web_engine_context.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-07-07 13:42:09 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-07-23 11:23:13 +0200
commitb7634f470a7d515957d0c65c1aaef0a54280a2b2 (patch)
treeaea1c10dacde68708bd769dc6e8cffba94a63daa /src/core/web_engine_context.cpp
parent1b59d57a8fc797c9c8de3873ba4c29d87711bc53 (diff)
Disable kAllowContentInitiatedDataUrlNavigations
It is bound to disappear from Chromium sooner or later, and is more secure turned off. [ChangeLog] Page content may no longer navigate to data-urls, if this is needed we recommend using custom-url schemes instead or force old behavior using --enable-features=AllowContentInitiatedDataUrlNavigations, though the feature switch may be removed in any later update. Pick-to: 6.2 Change-Id: I9398f54bcb49dce90afa049b2a2f4acf6f9810f7 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'src/core/web_engine_context.cpp')
-rw-r--r--src/core/web_engine_context.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp
index c15784a19..fffcfad8f 100644
--- a/src/core/web_engine_context.cpp
+++ b/src/core/web_engine_context.cpp
@@ -700,11 +700,6 @@ WebEngineContext::WebEngineContext()
std::vector<std::string> disableFeatures;
std::vector<std::string> enableFeatures;
- // Needed to allow navigations within pages that were set using setHtml(). One example is
- // tst_QWebEnginePage::acceptNavigationRequest.
- // This is deprecated behavior, and will be removed in a future Chromium version, as per
- // upstream Chromium commit ba52f56207a4b9d70b34880fbff2352e71a06422.
- enableFeatures.push_back(features::kAllowContentInitiatedDataUrlNavigations.name);
enableFeatures.push_back(features::kTracingServiceInProcess.name);