Closed
Bug 116088
Opened 23 years ago
Closed 21 years ago
[FIXr]timeStamp is zero for script generated events
Categories
(Core :: DOM: Events, defect, P3)
Core
DOM: Events
Tracking
()
RESOLVED
FIXED
mozilla1.7beta
People
(Reporter: vladimire, Assigned: bzbarsky)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
1.26 KB,
text/html
|
Details | |
891 bytes,
patch
|
jst
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
If an event is generated from script the timeStamp attribute of the event is zero.
Reporter | ||
Comment 1•23 years ago
|
||
Updated•23 years ago
|
Target Milestone: --- → mozilla1.1
Reporter | ||
Updated•23 years ago
|
Priority: -- → P4
Assignee | ||
Comment 3•21 years ago
|
||
Assignee | ||
Comment 4•21 years ago
|
||
Comment on attachment 141289 [details] [diff] [review] Possible patch This implements the exact "time at which the event was created." language in the spec. It may be more useful to use the dispatchEvent time? Or the initEvent time? Or just wontfix this, since "0" is perfectly valid per the spec?
Attachment #141289 -
Flags: superreview?(jst)
Attachment #141289 -
Flags: review?(jst)
Comment 5•21 years ago
|
||
Comment on attachment 141289 [details] [diff] [review] Possible patch This'll only initialize an event when it's created from script, right? In other cases, we kinda don't care about the time stamp (except in the cases where it's already initialized).
Attachment #141289 -
Flags: superreview?(jst)
Attachment #141289 -
Flags: superreview+
Attachment #141289 -
Flags: review?(jst)
Attachment #141289 -
Flags: review+
Assignee | ||
Comment 6•21 years ago
|
||
As far as I can tell, this is indeed only for cases when it's created from script -- all other times have an nsEvent already.
Assignee: joki → bzbarsky
OS: Windows 98 → All
Priority: P4 → P3
Hardware: PC → All
Summary: timeStamp is zero for script generated events → [FIXr]timeStamp is zero for script generated events
Target Milestone: Future → mozilla1.7beta
Assignee | ||
Comment 7•21 years ago
|
||
Fix checked in for 1.7b
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment 8•16 years ago
|
||
document.createEvent("Events").timeStamp seems to give me random numbers that aren't comparable to a real event's timeStamp or Date.now().
Assignee | ||
Comment 9•16 years ago
|
||
I'm pretty sure we have bugs on file on that, actually (some of the timestamps are in one unit system, while others are in another; not all of them follow the spec).
You need to log in
before you can comment on or make changes to this bug.
Description
•