diff options
author | Moss Heim <self@mossheim.net> | 2023-12-13 13:39:16 +0100 |
---|---|---|
committer | Moss Heim <moss.heim@qt.io> | 2024-03-11 10:33:05 +0100 |
commit | fbb216fa3119d06f88744e18d3f4f53d64fcf523 (patch) | |
tree | 1f6c7cea4f33b2ac5cff000919ff0175768f9fd0 /examples/webenginewidgets/simplebrowser | |
parent | 8064e40e070c2319dd87578bda5ad68b9abdbee0 (diff) |
Add granular permission for clipboard-read/write
Previously, permissions for clipboard access could only be managed
through the JavascriptCanAccessClipboard and JavascriptCanPaste
settings. This change allows copy/paste to be handled the same way
as notification and geolocation permissions.
If both JavascriptCanAccessClipboard and JavascriptCanPaste are
enabled, permissions will be granted unconditionally without a
feature request being made.
Fixes: QTBUG-77450
Change-Id: I383e27e244ced3d6b7988644e38d2307c6267f76
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'examples/webenginewidgets/simplebrowser')
-rw-r--r-- | examples/webenginewidgets/simplebrowser/webview.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/webenginewidgets/simplebrowser/webview.cpp b/examples/webenginewidgets/simplebrowser/webview.cpp index 240465b46..087faf36a 100644 --- a/examples/webenginewidgets/simplebrowser/webview.cpp +++ b/examples/webenginewidgets/simplebrowser/webview.cpp @@ -90,6 +90,8 @@ inline QString questionForFeature(QWebEnginePage::Feature feature) return QObject::tr("Allow %1 to capture audio and video of your desktop?"); case QWebEnginePage::Notifications: return QObject::tr("Allow %1 to show notification on your desktop?"); + case QWebEnginePage::ClipboardReadWrite: + return QObject::tr("Allow %1 to read from and write to the clipboard?"); } return QString(); } |