GoogleChromeLabs / GoogleChromeLabs/chrome-for-testing

`document.execCommand` doesn't work in headless mode

Open
#154 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.