Closed Bug 298129 Opened 20 years ago Closed 20 years ago

Event.timeStamp always returns 0 for mouse click events

Categories

(Core :: DOM: Events, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: boolean, Unassigned)

Details

(Whiteboard: [no l10n impact])

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Event.timeStamp always returns 0 for mouse events with a type of "click". Other mouse events like mousedown and mouseup work correctly and have a nonzero value. Reproducible: Always
Attached file testcase
attachement https://bugzilla.mozilla.org/attachment.cgi?id=32821 shows it well, unfortunately I forgot to write downto which bug it belongs and i haven't been able to find it anymore
Peter, it is bug 77992 that testcase belongs to. It seems to me this bug is very much related/duplicate to that bug.
Your call Martijn. My knowlage of this stuff is way to limited to see if this is the same issue
Flags: blocking1.8b4?
Assignee: nobody → events
Status: UNCONFIRMED → NEW
Component: General → DOM: Events
Ever confirmed: true
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk
click events are synthesized from widget-level mouse up/down events; presumably the date information isn't copied. I think this bug is unrelated to bug 77992.
Whiteboard: [no l10n impact]
Attached patch patchSplinter Review
Ok, this seems to work.
Attachment #188725 - Flags: review?(dbaron)
Attachment #188725 - Flags: superreview?(bzbarsky)
Comment on attachment 188725 [details] [diff] [review] patch sr=bzbarsky. I think we should take this for 1.8b3; it's a very safe fix.
Attachment #188725 - Flags: superreview?(bzbarsky)
Attachment #188725 - Flags: superreview+
Attachment #188725 - Flags: approval1.8b3?
Attachment #188725 - Flags: approval1.8b3? → approval1.8b4+
Checked in (by timeless).
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Flags: blocking1.8b4?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: