mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
WebPage: Always grant MouseLock permission in fullscreen
This commit is contained in:
parent
6b02cd4cab
commit
83db3c1988
|
@ -323,6 +323,9 @@ void WebPage::fullScreenRequested(bool fullScreen)
|
|||
|
||||
void WebPage::featurePermissionRequested(const QUrl &origin, const QWebEnginePage::Feature &feature)
|
||||
{
|
||||
if (feature == MouseLock && view()->isFullScreen())
|
||||
setFeaturePermission(origin, feature, PermissionGrantedByUser);
|
||||
else
|
||||
mApp->html5PermissionsManager()->requestPermissions(this, origin, feature);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user