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

sbcbus commented on GUACAMOLE-1857:
-----------------------------------

[~mjumper], Basically, I'd like it investigated what's missing since Webkit 
seemingly added the api., but can confirm the clipboard does not update today 
in Safari without bringing up the menu. My guess is it is the privacy 
enhancements they mention in their blog, such as: 
{quote}The request to write to the clipboard must be triggered during a user 
gesture. A call to clipboard.write or clipboard.writeText outside the scope of 
a user gesture (such as "click" or "touch" event handlers) will result in the 
immediate rejection of the promise returned by the API call.{quote}

Or this part:

bq. If a page attempts to programmatically read from the pasteboard outside of 
a user gesture, the promise will immediately reject. If the user is explicitly 
triggering a paste during the gesture (for instance, using a keyboard shortcut 
on macOS such as ⌘V or pasting using the “Paste” action on the callout bar on 
iOS), WebKit will allow the page to programmatically read the contents of the 
clipboard. 


> Add Safari/Webkit support for clipboard (aync api)
> --------------------------------------------------
>
>                 Key: GUACAMOLE-1857
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-1857
>             Project: Guacamole
>          Issue Type: Improvement
>          Components: guacamole-client
>    Affects Versions: 1.5.3
>            Reporter: sbcbus
>            Priority: Trivial
>
> The [current FAQ 
> |https://guacamole.apache.org/faq/#keyboard-shortcuts]mentions mostly Chrome 
> for supporting writing/reading from the clipboard via the newer async 
> clipboard API, which doesn't require bringing up the Guacamole menu. Webkit 
> has seemingly adopted this API as of [June 
> 2020|[https://webkit.org/blog/10855/async-clipboard-api/].]
>  
> The FAQ also mentions some browsers implement restrictions, and there is a 
> section in the webkit announcement about clicks required, etc. It would be 
> nice to see if this could be revisited and see the behavior in Chrome today 
> can be matched.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to