GoogleChromeLabs / GoogleChromeLabs/chrome-for-testing
`document.execCommand` doesn't work in headless mode
Open
- Dominant language
- JavaScript
- Stars
- 1.3k
- Forks
- 159
- Avg merge
- 18h 37m
- Merged PRs (30d)
- 3
Description
In my browser extension I use an offscreen page and `document.execCommand` to read and write to the clipboard. This works fine in headful mode but not in headless. I have tested both `document.execCommand("copy")` and `document.execCommand("paste")`. There is no error, they simply do nothing.
Contributor guide
Assessment
This issue has not been assessed yet.