Skip to content

Fix Collabora clipboard on Chromium-based browsers #1567

Closed

Description

@niklasiivari

Initial Checklist

  • I understand this is a feature request and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Idea

The iframe tag for collabora integration should be edited to enable clipboard access, as described in the collabora advanced integration documentation: here:

Allow the clipboard permission query
Chrome implements a JavaScript API to paste from the clipboard without using the keyboard. This relies on cross-origin iframes, which is disabled by default. To enable it in your integration, use a new attribute in the iframe element of your integration:

<iframe allow="clipboard-read *; clipboard-write *"/>

Once this is in place, the user will see a popup to allow access to the clipboard on first use.

Currently, this error is given in the console, and copying even using ctrl+c does not work:

bundle.js:14302 [Violation] Permissions policy violation: The Clipboard API has been blocked because of a permissions policy applied to the current document. See https://crbug.com/414348233 for more details. _asyncAttemptNavigatorClipboardWrite @ bundle.js:14302

Activity

  1. AlexAndBear commented on Nov 10, 2025

    @AlexAndBear
    Member

    On google chrome, this dialog pops up but copying and pasting does work

    Image

    Can you share the OS/Browser you are using ?

  2. niklasiivari commented on Nov 10, 2025

    @niklasiivari
    Author

    Hi! Found out, that apparently collabora has changed their clipboard handling to use the new async API in recent versions. Rolling back to 25.04.4.2, everything works fine.

    The new API needs these permissions, but old clipboard access methods do not. So, this is something that needs to be done, if we want clipboard to work on newer collabora versions. In that sense this is not very urgent, but on the other hand, it is a very small change to make.

    I am using Google Chrome, Version 141.0.7390.122 on OpenSUSE Tumbleweed.

  3. AlexAndBear commented on Nov 10, 2025

    @AlexAndBear
    Member

    Thanks for the clarification, opened a PR 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions