[ 
https://issues.apache.org/jira/browse/GUACAMOLE-24?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16152239#comment-16152239
 ] 

Mathias commented on GUACAMOLE-24:
----------------------------------

>From Firefox 54 and above, interact with the clipboard via 
>document.execCommand("copy") is possible. Copy is working, but 
>document.execCommand("Paste"); is not working.

[https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Interact_with_the_clipboard]

[https://developer.mozilla.org/en-US/Firefox/Releases/41#InterfacesAPIsDOM]

For security reasons, Firefox doesn't let JavaScript code use clipboard related 
features (copy, paste, etc.) by default. You can enable them by setting the 
preferences shown below using about:config:

{code:java}
dom.event.clipboardevents.enabled=true
capability.policy.allowclipboard.sites=https://xxx
capability.policy.allowclipboard.Clipboard.cutcopy=allAccess
capability.policy.allowclipboard.Clipboard.paste=allAccess
{code}

[https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Editable_content]

Maybe some bugs are not resolved. Permission and implementation for scripted 
paste
[https://bugzilla.mozilla.org/show_bug.cgi?id=1272296]

> Directly integrate local clipboard
> ----------------------------------
>
>                 Key: GUACAMOLE-24
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-24
>             Project: Guacamole
>          Issue Type: New Feature
>          Components: guacamole
>            Reporter: Michael Jumper
>             Fix For: 0.9.10-incubating
>
>
> {panel:bgColor=#FFFFEE}
> *The description of this issue was copied from 
> [GUAC-1480|https://glyptodon.org/jira/browse/GUAC-1480], an issue in the JIRA 
> instance used by the Guacamole project prior to its acceptance into the 
> Apache Incubator.*
> Comments, attachments, related issues, and history from prior to acceptance 
> *have not been copied* and can be found instead at the original issue.
> {panel}
> Thanks to recent improvements in browser handling of clipboard, direct 
> integration of the local clipboard is now possible. Cut/copy via the keyboard 
> can be written to work in all cases, while the general case will require 
> either:
> # -The Chrome [Allow 
> Clipboard|https://chrome.google.com/webstore/detail/allow-clipboard/bgafccceonganlcmcojjacanoadnhmac?hl=en]
>  extension.- Our [Clipboard Permission Manager 
> extension|https://chrome.google.com/webstore/detail/clipboard-permission-mana/ipbhneeanpgkaleihlknhjiaamobkceh].
> # Browser support for prompting for clipboard permission upon use of the 
> standard {{execCommand()}} (currently only IE11).
> The situation for Chrome, Firefox, etc. is suboptimal, but still far better 
> than before, there is hope that other browsers will follow the mechanism used 
> by IE11 and allow webapps to request permission. The negative effects of the 
> old style of clipboard integration are no longer an issue.
> {panel:title=IMPORTANT|bgColor=#FFFFEE}
> For this integration to be acceptable, it *MUST NOT* disturb the remote 
> clipboard except when the local clipboard actually changes. It would be 
> extremely frustrating if the user copies something not supported for the 
> Guacamole clipboard, like a file, only to find it immediately overwritten by 
> the text they copied previously.
> {panel}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to