Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix safari clipboard bug #1722

Merged
merged 3 commits into from
Feb 6, 2024

Conversation

mtallenca
Copy link
Contributor

@mtallenca mtallenca commented Feb 6, 2024

With Safari 17.2.1 on Desktop and iOS 17 Safari - performing Clipboard status checks causes a "Paste" menu to be displayed and stops user input. The status checks were initialized by ClipboardStatusNotifier when a default value of "unknown" was used in it's constructor as well as each time the editor content changed. This PR gives the web a default value of ClipboardStatus.pasteable and doesn't force update calls when content change on web.

Related Issues
Fix Editor for web app keeps showing "paste" dialog everytime in a read only content page from IOS web browser #1567

Suggestions
Cut/Copy/Paste with keyboard shortcuts work on web, but right click menu items cut/copy/paste do not work correctly. This PR does not address this existing issue.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[x] No, this is not a breaking change.

@EchoEllet
Copy link
Collaborator

EchoEllet commented Feb 6, 2024

Thank you for your contributions.

@EchoEllet EchoEllet merged commit be84f1c into singerdmx:master Feb 6, 2024
1 of 2 checks passed
Comment on lines +86 to +88
// Web - esp Safari Mac/iOS has security measures in place that restrict
// cliboard status checks w/o direct user interaction. So skip this
// for web
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this issue is specific to Safari (Mac/iOS), shouldn't we only introduce this change for safari instead of all browsers?

@EchoEllet
Copy link
Collaborator

EchoEllet commented Sep 19, 2024

@mtallenca
Can explain why this change was made for all browsers instead of Safari only?

@mtallenca
Copy link
Contributor Author

mtallenca commented Sep 19, 2024 via email

@EchoEllet
Copy link
Collaborator

Thank you for the explanation, I was trying to fix #2220, and I couldn't find where the paste logic is performed for the web. It seems to be separated from non-web platforms.

So, I initially thought this was related but didn't seem to be the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants