Closed Bug 1125983 Opened 9 years ago Closed 9 years ago

Allow ignoring onpaste events

Categories

(Core :: DOM: Events, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: wenzel, Unassigned)

Details

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.
You can disable the events with the 'dom.event.clipboardevents.enabled' preference.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.