[Webkit-unassigned] [Bug 211101] New: Event timestamps are incorrect (off by almost exactly 31 years)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 27 16:19:29 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=211101

            Bug ID: 211101
           Summary: Event timestamps are incorrect (off by almost exactly
                    31 years)
           Product: WebKit
           Version: Safari 13
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Major
          Priority: P2
         Component: WebDriver
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: philip at philipwalton.com
                CC: bburg at apple.com

I'm testing some code in Safari using webdriver that compares `event.timeStamp` to `performance.now()`, and I've noticed that the `event.timeStamp` values are way off.

Here is a log of a few values I'm seeing reported in an event listener:

event.timeStamp: 609714965503,
Date.now(): 1588028638216,
performance.now(): 105,

Interestingly (not sure if it's a coincidence), the value reported by event.timeStamp is a valid timestamp, and it's actually a timestamp for the same Month and Date as today, it's just 31 years off:

new Date(609714965503)
// Thu Apr 27 1989 14:16:05 GMT-0700 (Pacific Daylight Time)
new Date(1588028638216)
// Mon Apr 27 2020 16:03:58 GMT-0700 (Pacific Daylight Time)


NOTE: this behavior only occurs when Running Safari via webdriver (using https://webdriver.io/). It does not happen when using the Safari browser.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200427/2b7ed7ae/attachment.htm>


More information about the webkit-unassigned mailing list