Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.13.0
-
None
-
fbb216fa3 (dev)
Description
There are two somewhat related issues with how clipboard permissions are handled:
- The new clipboard permission handling (see
QTBUG-72714) unconditionally checks for JavascriptCanAccessClipboard. However, the documentation for that says: "Writing to the clipboard is always allowed if it is specifically requested by the user.". The same is true in Chromium, no special permissions need to be granted for e.g. a GitHub "copy link" button to work, but it doesn't work without setting JavascriptCanAccessClipboard with QtWebEngine.
- The same check checks for JavascriptCanPaste && JavascriptCanAccessClipboard which means both need to be set to true. In other words, it's impossible to allow a website write-only access to the clipboard, read access always needs to be granted as well.
Attachments
For Gerrit Dashboard: QTBUG-77450 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
270355,1 | WIP: Respect user_gesture for writing to clipboard | 5.13 | qt/qtwebengine | Status: ABANDONED | -2 | 0 |
526974,1 | Add granular permission for clipboard-read | dev | qt/qtwebengine | Status: ABANDONED | 0 | 0 |
526977,6 | Add granular permission for clipboard-read/write | dev | qt/qtwebengine | Status: MERGED | +2 | 0 |