chrome-for-testing icon indicating copy to clipboard operation
chrome-for-testing copied to clipboard

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

Open david-tejada opened this issue 4 months ago • 0 comments

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.

david-tejada avatar Oct 02 '24 06:10 david-tejada