Last Comment Bug 691151 - Remove Event.prototype.getPreventDefault
: Remove Event.prototype.getPreventDefault
Status: NEW
: addon-compat, dev-doc-needed, site-compat
Product: Core
Classification: Components
Component: DOM: Events (show other bugs)
: Trunk
: All All
: -- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
Mentors:
Depends on: 1024488 707677 708702 708703 714601 714602 715110 726933 876040 876054
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-02 07:25 PDT by David Bruant
Modified: 2016-07-14 13:44 PDT (History)
15 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description David Bruant 2011-10-02 07:25:10 PDT
This is not standard and has a standard alternative (defaultPrevented property).
There is no reason to keep this around forever.
Comment 1 Olli Pettay [:smaug] 2011-10-02 08:23:38 PDT
Need to first remove all its usage from Firefox / Gecko / Thunderbird / etc. then start
warn about its usage, and then remove it.
But yes,  we should try to remove it.
Comment 2 :Ms2ger (⌚ UTC+1/+2) 2011-10-02 08:54:59 PDT
Looks like that wouldn't be too hard: <http://mxr.mozilla.org/comm-central/search?string=getPreventDefault&filter=\bgetPreventDefault>.
Comment 3 neil@parkwaycc.co.uk 2013-05-24 16:21:39 PDT
(In reply to Olli Pettay from comment #1)
> Need to first remove all its usage from Firefox / Gecko / Thunderbird / etc.
> then start warn about its usage, and then remove it.
> But yes,  we should try to remove it.

Looks like we started warning about it when there are still 11 in-tree callers...
Comment 4 Masatoshi Kimura [:emk] 2013-05-24 16:46:05 PDT
Oops, I didn't realize the existence of C++ callers. Reverting for now.
Comment 5 Jonas Sicking (:sicking) PTO Until July 5th 2013-09-23 00:01:34 PDT
It appears that wikipedia still uses this.
Comment 6 Kohei Yoshino [:kohei] 2015-10-27 23:08:17 PDT
Posted the site compatibility doc: https://www.fxsitecompat.com/en-US/docs/2015/event-getpreventdefault-will-be-removed/
Comment 7 Brian McClure 2016-06-30 03:38:12 PDT
Are there any estimates on when getPreventDefault will finally be removed?

Note You need to log in before you can comment on or make changes to this bug.