Allow webconsole to execute features gated by user activation
Categories
(DevTools :: Console, enhancement)
Tracking
(Not tracked)
People
(Reporter: Susko3, Unassigned)
References
()
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0
Steps to reproduce:
- Go to a website (e.g. https://example.com)
- Open browser console (F12)
- Type navigator.clipboard.writeText("test")
- Press enter
Actual results:
Uncaught (in promise) DOMException: Clipboard write was blocked due to lack of user activation.
Expected results:
The text "test" should be written to the clipboard. Since I'm explicitly entering the command and pressing enter, this should be considered user activation.
Comment 1•19 days ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::Console' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•18 days ago
|
||
Could be interesting as an enhancement as long as it's not confusing for users. They shouldn't be lead to believe that such code would work without activation in the actual page.
Nicolas, did you hear about similar requests to open APIs requiring user activation when coming from the console?
https://developer.mozilla.org/en-US/docs/Web/Security/User_activation
Comment 3•13 days ago
|
||
This looks similar to Bug 1283341, I guess we can duplicate this bug?
Comment 4•12 days ago
|
||
Sounds similar yes.
Description
•