Commit 08205949 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Emit url blocked (we will used it in remote-content support)

parent 0d598e65
Pipeline #51407 passed with stage
in 42 minutes and 8 seconds
......@@ -29,6 +29,7 @@ bool LoadExternalReferencesUrlInterceptor::interceptRequest(QWebEngineUrlRequest
return false;
} else {
if (info.resourceType() == QWebEngineUrlRequestInfo::ResourceTypeImage && !info.requestUrl().isLocalFile() && (scheme != QLatin1String("cid"))) {
Q_EMIT urlBlocked(info.requestUrl());
return true;
} else if (info.resourceType() == QWebEngineUrlRequestInfo::ResourceTypeFontResource) {
return true;
......
......@@ -21,6 +21,9 @@ public:
void setAllowExternalContent(bool b);
Q_REQUIRED_RESULT bool allowExternalContent() const;
Q_SIGNALS:
void urlBlocked(const QUrl &url);
private:
bool mAllowLoadExternalReference = false;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment