Allow ignoring onpaste events

RESOLVED WORKSFORME

Status

()

Core
DOM: Events
RESOLVED WORKSFORME
3 years ago
3 years ago

People

(Reporter: wenzel, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
onPaste events are DOM events like any other, however, I have rarely seen them used legitimately (to do something useful upon pasting text), and frequently seem them abused (to prevent users from pasting text where they would otherwise like to do that, and to strong-arm them into manually typing things).

This appears to be a particular favorite of sites where email addresses need to be typed twice to be "confirmed", but also phone numbers, credit card numbers, passwords.

As a user, I should have the ability to ignore this behavior. Copy-and-pasting is such an essential action that website owners are not acting within the realm of reasonable UX if they deny users to paste things.

Could this be a pref, for instance?

I would happily write an add-on to the effect, but scraping any and all sites for onPaste event handlers doesn't seem efficient.

Comment 1

3 years ago
You can disable the events with the 'dom.event.clipboardevents.enabled' preference.
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.