summaryrefslogtreecommitdiff
path: root/Source/WebKit/qt/WidgetApi/qwebpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/qt/WidgetApi/qwebpage.cpp')
-rw-r--r--Source/WebKit/qt/WidgetApi/qwebpage.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/WebKit/qt/WidgetApi/qwebpage.cpp b/Source/WebKit/qt/WidgetApi/qwebpage.cpp
index f9cec3e54..a1fe49e13 100644
--- a/Source/WebKit/qt/WidgetApi/qwebpage.cpp
+++ b/Source/WebKit/qt/WidgetApi/qwebpage.cpp
@@ -1584,11 +1584,15 @@ bool QWebPage::shouldInterruptJavaScript()
void QWebPage::setFeaturePermission(QWebFrame* frame, Feature feature, PermissionPolicy policy)
{
+#if !ENABLE(NOTIFICATIONS) && !ENABLE(LEGACY_NOTIFICATIONS) && !ENABLE(GEOLOCATION)
+ Q_UNUSED(frame);
+ Q_UNUSED(policy);
+#endif
switch (feature) {
case Notifications:
#if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
- if (policy == PermissionGrantedByUser)
- d->allowNotificationsForFrame(frame->d);
+ if (policy != PermissionUnknown)
+ d->setNotificationsAllowedForFrame(frame->d, (policy == PermissionGrantedByUser));
#endif
break;
case Geolocation: