Open Bug 1872009 Opened 11 months ago Updated 7 months ago

Allow selected sites to access clipboard

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, enhancement)

Firefox 121
enhancement

Tracking

()

People

(Reporter: andy2020, Unassigned)

References

Details

Attachments

(1 file)

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.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core

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.

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.

Summary: Allow specified sites to access clipboard → Allow photopea.com to access clipboard
Status: UNCONFIRMED → NEW
Component: DOM: Core & HTML → DOM: Copy & Paste and Drag & Drop
Depends on: 1770358
Ever confirmed: true

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.

Summary: Allow photopea.com to access clipboard → Allow selected sites to access clipboard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: