-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Fix Web asking for clipboard permissions #57324
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 Web asking for clipboard permissions #57324
Conversation
|
@nturgut Is it possible to run those failing web tests locally to make sure that this fixes it? |
|
We also have this control for the toolbar:
Is it related? For a text field on the web, we don't render a copy/paste menu, we use the one that browser shows. |
|
Yeah, these changes in EditableText are still needed in addition to that check because EditableText uses the clipboard status to decide to allow pasting via semantics/accessibility. |
goderbauer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…)" (flutter#57286)" This reverts commit 32547dc.
7ff5606 to
6a4c68a
Compare
|
One option (for local development) is using felt tool. You can run: |
|
Flutter Web integration tests are passing, I run them on my local against this PR. |
|
Confirmed that those tests pass locally now ✅ |
Description
#57139 checked the clipboard to see if it could show the paste button, but this broke web because it has to ask for the user's permission to use the clipboard (see #57139 (comment)). Web doesn't draw its own text selection menu though, so it doesn't need to check the clipboard, and this PR removes that functionality for web.
Related Issues
#57286
Tests
I added the following tests: