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:
parent
6b02cd4cab
commit
83db3c1988
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user