Prevent Firefox's global paste behavior if paste target is not also focused (#2581)

* Prevent Firefox's global paste behavior if paste target is not also focused

* Write a test, fix code thanks to test

* Add one more comment to test
This commit is contained in:
Frank Noirot
2024-06-04 14:36:34 -04:00
committed by GitHub
parent c9800a58d0
commit 29cdc66b34
4 changed files with 95 additions and 1 deletions

View File

@ -34,7 +34,14 @@ export default defineConfig({
projects: [
{
name: 'Google Chrome',
use: { ...devices['Desktop Chrome'], channel: 'chrome' }, // or 'chrome-beta'
use: {
...devices['Desktop Chrome'],
channel: 'chrome',
contextOptions: {
/* Chromium is the only one with these permission types */
permissions: ['clipboard-write', 'clipboard-read'],
},
}, // or 'chrome-beta'
},
{
name: 'webkit',