diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-12-19 10:18:18 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-01-25 14:41:09 +0000 |
commit | a7f37f48d5691c9be4a419edc34396229a1b9bb5 (patch) | |
tree | c817effcf42f532d04b9a0352be10ea418e92cb2 /tests/auto/core | |
parent | f4a8ce98bd371acf1ca1eb2c58a8403e8795a670 (diff) |
Test adaptations for Chromium 63
Change-Id: I19bf693fb3916a78f4a199e6e095ca58b8fdfa27
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'tests/auto/core')
-rw-r--r-- | tests/auto/core/qwebengineurlrequestinterceptor/tst_qwebengineurlrequestinterceptor.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/core/qwebengineurlrequestinterceptor/tst_qwebengineurlrequestinterceptor.cpp b/tests/auto/core/qwebengineurlrequestinterceptor/tst_qwebengineurlrequestinterceptor.cpp index 926c3e042..50a3e6ff6 100644 --- a/tests/auto/core/qwebengineurlrequestinterceptor/tst_qwebengineurlrequestinterceptor.cpp +++ b/tests/auto/core/qwebengineurlrequestinterceptor/tst_qwebengineurlrequestinterceptor.cpp @@ -88,6 +88,9 @@ public: void interceptRequest(QWebEngineUrlRequestInfo &info) override { + // Since 63 we also intercept some unrelated blob requests.. + if (info.requestUrl().scheme() == QLatin1String("blob")) + return; info.block(info.requestMethod() != QByteArrayLiteral("GET")); if (shouldIntercept && info.requestUrl().toString().endsWith(QLatin1String("__placeholder__"))) info.redirect(QUrl("qrc:///resources/content.html")); @@ -152,6 +155,9 @@ public: void interceptRequest(QWebEngineUrlRequestInfo &info) override { + // Since 63 we also intercept the original data requests + if (info.requestUrl().scheme() == QLatin1String("data")) + return; if (info.resourceType() == QWebEngineUrlRequestInfo::ResourceTypeFavicon) return; |