Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@nturgut
Copy link
Contributor

@nturgut nturgut commented Jan 10, 2020

copy/paste solution for chrome. copy solution for firefox. Implemented using clipboardAPI

See:https://developers.google.com/web/updates/2018/03/clipboardapi
See: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard

firefox can only use readText if the target is an editable content. we can use execCommand instead, will continue in issue: flutter/flutter#48581

Fixes: flutter/flutter#46020

@nturgut nturgut added the platform-web Code specifically for the web engine label Jan 10, 2020
@nturgut nturgut requested a review from mdebbar January 10, 2020 18:02
@auto-assign auto-assign bot requested a review from cbracken January 10, 2020 18:02
@nturgut nturgut removed the request for review from cbracken January 10, 2020 18:02
@nturgut nturgut changed the title Support Clipboard.getData and Clipboard.setData for clutter for web Support Clipboard.getData and Clipboard.setData for Flutter for web Jan 10, 2020
@nturgut nturgut requested a review from mdebbar January 10, 2020 20:06
Copy link
Contributor

@mdebbar mdebbar left a comment

Choose a reason for hiding this comment

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

LGTM

@nturgut nturgut added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Jan 10, 2020
@nturgut
Copy link
Contributor Author

nturgut commented Jan 11, 2020

Merging the code since the breakage is in Fuchsia. The PR is about Clipboard support in Flutter for Web.

@nturgut nturgut merged commit 88935ca into flutter:master Jan 11, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 11, 2020
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Jan 13, 2020
flutter/engine@3d37d39...88935ca

git log 3d37d39..88935ca --first-parent --oneline
2020-01-11 [email protected] Support Clipboard.getData and Clipboard.setData for Flutter for web  (flutter/engine#15455)
2020-01-11 [email protected] Roll src/third_party/dart 395daaa3ecfc..b3457c8cc2c1 (66 commits) (flutter/engine#15485)


If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
mehere pushed a commit to mehere/flutter that referenced this pull request Jan 14, 2020
flutter/engine@3d37d39...88935ca

git log 3d37d39..88935ca --first-parent --oneline
2020-01-11 [email protected] Support Clipboard.getData and Clipboard.setData for Flutter for web  (flutter/engine#15455)
2020-01-11 [email protected] Roll src/third_party/dart 395daaa3ecfc..b3457c8cc2c1 (66 commits) (flutter/engine#15485)


If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
@nturgut nturgut mentioned this pull request Jan 23, 2020
11 tasks
NoamDev pushed a commit to NoamDev/engine that referenced this pull request Feb 27, 2020
…lutter#15455)

* copy/paste solution for chrome. copy solution for firefox. using clipboardAPI.

* addressing PR comments

* update licences file
NoamDev added a commit to NoamDev/engine that referenced this pull request Feb 27, 2020
filmil pushed a commit to filmil/engine that referenced this pull request Mar 13, 2020
…lutter#15455)

* copy/paste solution for chrome. copy solution for firefox. using clipboardAPI.

* addressing PR comments

* update licences file
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes platform-web Code specifically for the web engine waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[web][chrome/firefox] Using Clipboard API in Flutter for Web

3 participants