Allow selected sites to access clipboard
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, enhancement)
Tracking
()
People
(Reporter: andy2020, Unassigned)
References
Details
Attachments
(1 file)
120.64 KB,
image/jpeg
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:121.0) Gecko/20100101 Firefox/121.0
Steps to reproduce:
I went to https://www.photopea.com/ to edit an image in my clipboard.
Actual results:
I first do a screen grab so I have an image in the clipboard., I then go to https://www.photopea.com/ site. I then do File -> New and the proposed new image size should be the image size in my clipboard, but it's not because Firefox has no option to allow specified sites to access the clipboard.
Expected results:
Firefox needs to have an option to allow specified sites to access the clipboard just like Chrome does.
Updated•11 months ago
|
Comment 1•11 months ago
|
||
This is about the "read()" feature of the Clipobard API: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/read - letting websites read the image in a clipboard without pasting the image.
It is available in Chrome, Edge, Opera, Safari, but not in Firefox.
Comment 2•11 months ago
|
||
For what it's worth. Edit > Paste actually works in Nightly since bug 1809106. File > New doesn't work and throws some error related to the clipboard-read
permission, which is unlikely to be added.
Updated•11 months ago
|
Updated•11 months ago
|
Reporter | ||
Comment 3•11 months ago
|
||
What we need is a new Firefox setting which would allow adding any site which then grants permission to that site to read the clipboard.
Reporter | ||
Updated•11 months ago
|
Description
•