You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Promotes the private clipboard read to a public `grabFromClipboard()`
action on every browser helper, and moves the in-page clipboard scripts
that were duplicated across four helpers into
`lib/helper/extras/clipboard.js`.
The shared scripts are promise-based and self-contained, so each helper
consumes them the way its engine expects: Playwright and Puppeteer pass
the function to `page.evaluate`, CDPBrowser interpolates it into a
`Runtime.evaluate` expression, and WebDriver wraps it in a W3C async
script body rather than keeping a second callback-style copy.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
thrownewError('Clipboard API is not available on this page, it requires a secure context (https or localhost)')
3089
-
}
3090
-
returnPromise.race([navigator.clipboard.readText(),newPromise((resolve,reject)=>setTimeout(()=>reject(newError('timed out while reading the clipboard')),timeout))])
thrownewError('Clipboard API is not available on this page, it requires a secure context (https or localhost)')
4951
-
}
4952
-
returnPromise.race([navigator.clipboard.readText(),newPromise((resolve,reject)=>setTimeout(()=>reject(newError('timed out while reading the clipboard')),timeout))])
thrownewError('Clipboard API is not available on this page, it requires a secure context (https or localhost)')
3764
-
}
3765
-
returnPromise.race([navigator.clipboard.readText(),newPromise((resolve,reject)=>setTimeout(()=>reject(newError('timed out while reading the clipboard')),timeout))])
thrownewError('Clipboard API is not available on this page, it requires a secure context (https or localhost)')
6
+
}
7
+
returnPromise.race([navigator.clipboard.readText(),newPromise((resolve,reject)=>setTimeout(()=>reject(newError('timed out while reading the clipboard')),timeout))])
0 commit comments