Remove preventBubble and preventCapture

RESOLVED FIXED in mozilla24

Status

()

Core
DOM: Events
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: David Bruant, Assigned: emk)

Tracking

({addon-compat, dev-doc-complete, site-compat})

unspecified
mozilla24
addon-compat, dev-doc-complete, site-compat
Points:
---
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

4 years ago
There is no plan in make a standard out of these Mozilla-specific methods. stopPropagation is what is used by developers (standard and better cross-browser compat)
They have no reason to exist as properties on Event.prototype anymore.

Updated

4 years ago
Keywords: addon-compat, dev-doc-needed, site-compat

Comment 1

4 years ago
Need to be careful especially with preventBubble. Traditionally it has been used oddly often.
(Assignee)

Comment 2

4 years ago
Created attachment 751836 [details] [diff] [review]
patch

Let's try and see what's going on early in the cycle.
Currently preventBubble is no-op, so any code depending on preventBubble is broken anyway.
Try result: https://tbpl.mozilla.org/?tree=Try&rev=0fe79854849d
Assignee: nobody → VYV03354
Status: NEW → ASSIGNED
Attachment #751836 - Flags: review?(bugs)

Updated

4 years ago
Attachment #751836 - Flags: review?(bugs) → review+
(Assignee)

Comment 3

4 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/343242181775
Flags: in-testsuite-
https://hg.mozilla.org/mozilla-central/rev/343242181775
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Updated:
https://developer.mozilla.org/en-US/docs/Web/API/Event
https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIDOMEvent
https://developer.mozilla.org/en-US/docs/Site_Compatibility_for_Firefox_24

We should also consider removing (Bug 691151) or deprecating (Bug 726933) getPreventDefault. The nsIDOMEvent document says it has been deprecated since Gecko 16.0 but the bugs are still open.
Keywords: dev-doc-needed → dev-doc-complete
(Assignee)

Comment 6

4 years ago
(In reply to Kohei Yoshino from comment #5)
> https://developer.mozilla.org/en-US/docs/Site_Compatibility_for_Firefox_24

I think preventBubble and preventCapture should be explained in a separate clause.
These methods are not derived from Netscape but from the earlier W3C draft.
Chromium have never supported these methods from the start. And the replacement method is stopPropagation.
(In reply to Masatoshi Kimura [:emk] from comment #6)
> I think preventBubble and preventCapture should be explained in a separate
> clause.
> These methods are not derived from Netscape but from the earlier W3C draft.
> Chromium have never supported these methods from the start. And the
> replacement method is stopPropagation.

Thank you for the feedback. I just corrected the document.
You need to log in before you can comment on or make changes to this bug.