New issue
Advanced search Search tips

Issue 874848 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

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



 
test-extension.zip
897 bytes Download
Components: Platform>Extensions
Labels: Needs-Triage-M68
Labels: -Pri-3 Triaged-ET Target-70 M-70 FoundIn-70 OS-Linux OS-Windows Pri-2
Status: Untriaged (was: Unconfirmed)
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...!!
Cc: rdevlin....@chromium.org garykac@chromium.org dcheng@chromium.org
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?
Owner: garykac@chromium.org
Status: Assigned (was: Untriaged)

Sign in to add a comment