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

Increase privacy

parent f28815f0
......@@ -73,6 +73,9 @@ void MailWebEnginePage::initialize()
const QFontInfo font(QFontDatabase().systemFont(QFontDatabase::GeneralFont));
settings()->setFontFamily(QWebEngineSettings::StandardFont, font.family());
settings()->setFontSize(QWebEngineSettings::DefaultFontSize, font.pixelSize());
connect(this, &QWebEnginePage::featurePermissionRequested,
this, &MailWebEnginePage::slotFeaturePermissionRequested);
}
void MailWebEnginePage::setPrintElementBackground(bool printElementBackground)
......@@ -83,3 +86,8 @@ void MailWebEnginePage::setPrintElementBackground(bool printElementBackground)
Q_UNUSED(printElementBackground);
#endif
}
void MailWebEnginePage::slotFeaturePermissionRequested(const QUrl& url, QWebEnginePage::Feature feature)
{
setFeaturePermission(url, feature, QWebEnginePage::PermissionDeniedByUser);
}
......@@ -35,6 +35,7 @@ public:
void setPrintElementBackground(bool printElementBackground);
private:
void slotFeaturePermissionRequested(const QUrl &url, QWebEnginePage::Feature feature);
void initialize();
};
}
......
Supports Markdown
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