Feature to add an immutable default browser paste button on a JavaScript element (div)
Categories
(Core :: DOM: Core & HTML, enhancement)
Tracking
()
People
(Reporter: thjacobs, Unassigned)
Details
I have implemented a custom context menu popup on my page. I'd like to be able to have a paste button on this menu.
I understand (or think I understand) why document.execCommand("paste") is disabled without a custom plug-in due to concerns over information security. I also understand (and added a message to users) to use ctrl-v or a plug-in as a workaround. But the plug-in solution won't work because my javascript libraries are intended to be used primarily on other domains (cross-site) and this feature (paste button) is such a small part of my overall app.
So the feature enhancement I am requesting is a way / function to add the default browser context menu paste button to a (div) element - something uninspectable and immutable from javascript, but something I could show my user that they could click on to paste information from the clipboard.
Comment 1•5 years ago
|
||
This doesn't fit into the SitePermissions component, maybe Menus is a better fit?
Comment 2•4 years ago
|
||
This is a request for a new DOM feature, moving there for triage. Note that such a new feature is usually done via the Web Standards process.
To me this doesn't seem viable as it sounds trivial to click-jack.
Reporter | ||
Comment 3•4 years ago
|
||
Thanks to Johann's insights in the problems inherent in my new feature request, I would like to withdraw the request at this time.
I want to thank Johann Hofmann, Paul Zuehlcke, and the Mozilla team for the excellent way you considered my request. So many times I have made feature requests only to be dismissed or putting in on the do it later (ie never do it) pile. I applaud you for your effort in providing this great system/service.
Updated•2 years ago
|
Description
•