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

Deprecate GM.setClipboard API #655

Open
ACTCD opened this issue May 14, 2024 · 0 comments
Open

Deprecate GM.setClipboard API #655

ACTCD opened this issue May 14, 2024 · 0 comments
Labels
enhancement Feature work
Milestone

Comments

@ACTCD
Copy link
Collaborator

ACTCD commented May 14, 2024

Since document.execCommand() has been deprecated and has unstable behavior in iOS Safari (#285).

the clipboard can only be accessed if the user then explicitly interacts with the platform UI (ref)

We believe that in most cases, accessing the clipboard should be included in the user interaction behavior.

So we encourage using the new Clipboard API directly, and the GM.setClipboard API will no longer needed.

We plan to deprecate it in the future unless we receive use cases sufficient to consider extending support. Maybe add a deprecation prompt in v5.0 and then remove in the v6.0.

@ACTCD ACTCD added the enhancement Feature work label May 14, 2024
@ACTCD ACTCD added this to the v5.0.0 milestone May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature work
Projects
None yet
Development

No branches or pull requests

1 participant