[meta] Clipboard API improvements
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, task)
Tracking
()
People
(Reporter: evilpies, Unassigned)
References
(Depends on 16 open bugs, Blocks 1 open bug)
Details
(Keywords: meta, Whiteboard: webcompat:risk-high)
Right now Firefox only supports Clipboard.writeText
and Clipboard.readText
and only for WebExtensions. Chrome already supports write
/read
with images.
Reporter | ||
Updated•6 years ago
|
Updated•6 years ago
|
Reporter | ||
Comment 1•6 years ago
|
||
Seems like Safari 13.1 just shipped with this API as well: https://webkit.org/blog/10247/new-webkit-features-in-safari-13-1/
Reporter | ||
Updated•6 years ago
|
According to https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API, firefox is the only modern browser that doesn't have this. Is there any progress on this?
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Updated•4 years ago
|
Updated•3 years ago
|
Comment 4•2 years ago
|
||
Stumbled on to this, while noticing that Safari and Chrome do implement Clipboard API, but Firefox
a) requires enabling a pref dom.events.asyncClipboard.readText, and
b) after that pref has been enabled, which exposes navigator.clipboard.readText() function, calling that function will cause an ad hoc popup dialog "Paste" to appear on the page that the user needs to click.
In Chrome, access to Clipboard is managed via the Permissions API. I wonder if Firefox has intent to implement same UX at some point? Or are there some qualms about using Permissions API for this purpose? (In particular, Permissions API is a one-off request for the lifetime of the site, whereas Firefox's current ad hoc popup appears on every paste operation)
Comment 5•2 years ago
|
||
(In reply to Jukka Jylänki from comment #4)
Stumbled on to this, while noticing that Safari and Chrome do implement Clipboard API, but Firefox
a) requires enabling a pref dom.events.asyncClipboard.readText, and
b) after that pref has been enabled, which exposes navigator.clipboard.readText() function, calling that function will cause an ad hoc popup dialog "Paste" to appear on the page that the user needs to click.In Chrome, access to Clipboard is managed via the Permissions API. I wonder if Firefox has intent to implement same UX at some point? Or are there some qualms about using Permissions API for this purpose? (In particular, Permissions API is a one-off request for the lifetime of the site, whereas Firefox's current ad hoc popup appears on every paste operation)
No, we don't plan to implement same UX as Chrome. Our approach is similar to Safari's, here is our intent to prototype. We are currently working on bug 1777448 to avoid button popup when user's privacy isn't affected.
Comment 6•1 year ago
|
||
Is it possible for us to remove parity-safari and parity-chrome from this bug and move it on to any dependent bugs that correspond to actual features.
Reporter | ||
Comment 7•1 year ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #6)
Is it possible for us to remove parity-safari and parity-chrome from this bug and move it on to any dependent bugs that correspond to actual features.
No problem. We are almost at parity now compared to 4 years ago.
Reporter | ||
Updated•1 year ago
|
Updated•10 months ago
|
Comment 8•10 months ago
|
||
Hi Thomas, we shipped the async clipboard api in Fx 127 which closed a major gap. This meta bug track a variety of issues, including test framework improvement. I think we'd like to mark webcompat:risk-* whiteboard tag on individual bugs which can reflect and help us track the risk better.
Comment 9•10 months ago
|
||
we'd like to mark webcompat:risk-* whiteboard tag on individual bugs
That was my plan. I will try to assess the sub-bugs next week, but in the meantime if we need to clear the whiteboard label on the meta-bug for bookkeeping, I don't mind doing so.
Description
•