Async Clipboard API writeText() doesn't work in background pages.
Reported by
masataka...@gmail.com,
Aug 16
|
||||||
Issue description
Chrome Version : 68.0.3440.106
OS Version: OS X 10.13.6
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
Safari: API isn't available
Firefox: API implemented in Nightly (63) and works as expected
IE/Edge: API isn't available
What steps will reproduce the problem?
1. install extension (attached file)
2. open devtools of its background page (from chrome://extensions page)
3. click its browser action then look at the console
4. check out the log
What is the expected result?
it shows "SUCCESS: text copied."
What happens instead of that?
it shows "FAIL: can't copy text." and the error object (which is undefined) in the next line.
Please provide any additional information below. Attach a screenshot if
possible.
I was trying to use the Async Clipboard API (introduced in Chrome 66, and Firefox 63) to copy some text to the clipboard in the extensions. It worked in Firefox, but failed in Chrome.
UserAgentString: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36
,
Aug 16
,
Aug 20
Able to reproduce the issue on Mac 10.13.3, Win-10 and Ubuntu 14.04 using chrome reported version #68.0.3440.106 and latest canary #70.0.3527.0. This is a non-regression issue as it is observed from M60 old builds. Hence, marking it as untriaged to get more inputs from dev team. Thanks...!!
,
Sep 14
dcheng@ and garykac@, you seem to own clipboard (though different parts of it) - do either of you know who the right owner for this might be?
,
Sep 14
,
Sep 21
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by lgrey@chromium.org
, Aug 16