Open Bug 1595818 Opened 5 years ago Updated 2 years ago

Feature to add an immutable default browser paste button on a JavaScript element (div)

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement

Tracking

()

UNCONFIRMED

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.

This doesn't fit into the SitePermissions component, maybe Menus is a better fit?

Component: Site Permissions → Menus

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.

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

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.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.