1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

WebPage: Always grant MouseLock permission in fullscreen

This commit is contained in:
David Rosca 2015-10-06 10:58:17 +02:00
parent 6b02cd4cab
commit 83db3c1988

View File

@ -323,7 +323,10 @@ void WebPage::fullScreenRequested(bool fullScreen)
void WebPage::featurePermissionRequested(const QUrl &origin, const QWebEnginePage::Feature &feature)
{
mApp->html5PermissionsManager()->requestPermissions(this, origin, feature);
if (feature == MouseLock && view()->isFullScreen())
setFeaturePermission(origin, feature, PermissionGrantedByUser);
else
mApp->html5PermissionsManager()->requestPermissions(this, origin, feature);
}
bool WebPage::isFullScreen()