Closed Bug 670558 Opened 13 years ago Closed 13 years ago

Different reference time for DOM events and mozRequestAnimationFrame

Categories

(Core :: DOM: Events, defect)

6 Branch
All
Other
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 77992

People

(Reporter: u419766, Unassigned)

Details

Attachments

(1 file)

Attached file referencetime.html
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20100101 Firefox/6.0
Build ID: 20110705195857

Steps to reproduce:

- open attached file in Browser with Web Console opened
- Press a key to fire a keypress event
- compare the timestamps logged to the console


Actual results:

Both timestamps have a large deviation, as if they use different reference times (epoch). The MDN documentation defines both timestams as milliseconds since the epoch. I would expect the epoch to be the same in both cases.


Expected results:

Both timestamps should have a small deviation.
DOM event .timeStamp are completely bogus in Gecko.  e.timeStamp doesn't even have the same _units_ for different events, much less the same epoch time.

The MDN documentation in this case sounds like wishful thinking more than documentation...
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: