aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/webpage.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-12-29 14:45:12 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-12-29 14:45:12 +0100
commit22f2451697b0dfc0b9d87e64acd55cdb353494b1 (patch)
tree20119fe1e70b842e35648289826981bca0ffdf2e /src/webengine/webpage.cpp
parentDownload manager fixes (diff)
downloadsmolbote-22f2451697b0dfc0b9d87e64acd55cdb353494b1.tar.xz
Off-the-record profile settings
- all profiles can load configs now - fullscreen requests are no longer ignored
Diffstat (limited to 'src/webengine/webpage.cpp')
-rw-r--r--src/webengine/webpage.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/webengine/webpage.cpp b/src/webengine/webpage.cpp
index a39c942..96ae040 100644
--- a/src/webengine/webpage.cpp
+++ b/src/webengine/webpage.cpp
@@ -8,9 +8,19 @@
#include "webpage.h"
+#include <QWebEngineFullScreenRequest>
+
WebPage::WebPage(QWebEngineProfile *profile, QObject *parent) :
QWebEnginePage(profile, parent)
{
+ connect(this, &WebPage::fullScreenRequested, this, [](QWebEngineFullScreenRequest request) {
+ request.accept();
+ });
+#ifdef QT_DEBUG
+ connect(this, &WebPage::featurePermissionRequested, this, [](const QUrl &securityOrigin, QWebEnginePage::Feature feature) {
+ qDebug("Feature requested: %i", feature);
+ });
+#endif
}
bool WebPage::certificateError(const QWebEngineCertificateError &certificateError)