WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
50494
Remove BeforeTextInsertedEvent
https://bugs.webkit.org/show_bug.cgi?id=50494
Summary
Remove BeforeTextInsertedEvent
Ryosuke Niwa
Reported
2010-12-03 15:17:39 PST
http://trac.webkit.org/changeset/13156
added BeforeTextInsertedEvent, which is used to implement maxlength in input element. However, this event is also exposed to JavaScript. In order to make editing code safer, it's beneficial to remove this event entirely or at least make it invisible from JavaScript. This event is fired by ReplacementFragment and TypingCommand::insertText
Attachments
Add attachment
proposed patch, testcase, etc.
Anne van Kesteren
Comment 1
2023-12-18 04:39:44 PST
It seems like this is not or no longer exposed to JavaScript. At least
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3Cscript%3E%0Aw(self.BeforeTextInsertedEvent)%0A%3C%2Fscript%3E
logs undefined.
Ryosuke Niwa
Comment 2
2023-12-19 14:56:15 PST
We still fire this event in ReplacementFragment::ReplacementFragment.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug