Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-77450

Issues with clipboard permissions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.8.0 FF
    • 5.13.0
    • WebEngine
    • None

    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

        Activity

          People

            moheim Moss Heim
            the compiler Florian Bruhin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes