Closed Bug 714601 Opened 13 years ago Closed 12 years ago

Use defaultPrevented instead of the deprecated getPreventDefault() in xul/content/static.js

Categories

(Other Applications :: ChatZilla, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dao, Assigned: rginda)

References

Details

(Whiteboard: [cz-0.9.90.1])

Attachments

(2 files, 1 obsolete file)

+++ This bug was initially created as a clone of Bug #707677 +++ event.getPreventDefault is deprecated, we should use event.defaultPrevented instead.
Attached patch Replaces deprecated method (obsolete) (deleted) — Splinter Review
As far as I can tell this is all that needs to be done.
Comment on attachment 659520 [details] [diff] [review] Replaces deprecated method It looks like Donald's patch still applies.
Attachment #659520 - Flags: review?(rginda)
In general ChatZilla tries to maintain backwards compatibility, how deprecated is the method - and how far back does support for the property go?
Comment on attachment 659520 [details] [diff] [review] Replaces deprecated method (In reply to Glen Mailer from comment #3) > In general ChatZilla tries to maintain backwards compatibility, how > deprecated is the method - and how far back does support for the property go? Gecko 6.0 according to https://developer.mozilla.org/en-US/docs/DOM/event.defaultPrevented . So this patch won't be good enough, sadly. :-(
Attachment #659520 - Flags: review?(rginda) → review-
Depends on: 656954
Attached patch Replaces deprecated method, v2 (deleted) — Splinter Review
Patch with polyfill
Attachment #659520 - Attachment is obsolete: true
Attachment #751684 - Flags: review?(gijskruitbosch+bugs)
Attached patch Patch with utility function (deleted) — Splinter Review
Personally, I'm not a fan of prototype messing-abouts, and would prefer something like this. I'll leave it to James to decide.
Attachment #752049 - Flags: review?(silver)
Attachment #751684 - Flags: review?(gijskruitbosch+bugs) → review?(silver)
Comment on attachment 751684 [details] [diff] [review] Replaces deprecated method, v2 Even AMO's unreliable checks will probably cry over this method too.
Attachment #751684 - Flags: review?(silver) → review-
Attachment #752049 - Flags: review?(silver) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [cz-0.9.91]
Whiteboard: [cz-0.9.91] → [cz-0.9.90.1]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: