diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-07-07 13:42:09 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-07-23 18:47:40 +0000 |
commit | f4b3bb0fd528b4dee697c219411b2c007ea7115a (patch) | |
tree | 1e1a58a146e08387a6c174da2dbbfa9e465c4d95 /src | |
parent | 35b37d3284836dcaf85a936020f2d124aa140c76 (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.
Change-Id: I9398f54bcb49dce90afa049b2a2f4acf6f9810f7
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
(cherry picked from commit b7634f470a7d515957d0c65c1aaef0a54280a2b2)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/web_engine_context.cpp | 5 |
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); |