WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
298656
[WebDriver][BiDi] Event timestamps should be an integral number
https://bugs.webkit.org/show_bug.cgi?id=298656
Summary
[WebDriver][BiDi] Event timestamps should be an integral number
Lauro Moura
Reported
2025-09-10 06:53:42 PDT
Currently, the timestamp event parameter is mapped to "number", which results in a C++ double type, usually filled from something like `WallTime::now().secondsSinceEpoch().milliseconds()` which might still contain a fractional part. Meanwhile, both Selenium and WPT tests expect them to be a plain int in Python, which matches the spec definition of this field being a "js-uint". We could work around it by just adding some `std::trunc` call before passing the values to the generated code. But maybe we could add an annotation like `"integral": true` to the json file, so the generated code ensures this constraint.
Attachments
Add attachment
proposed patch, testcase, etc.
Lauro Moura
Comment 1
2025-09-11 07:40:19 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/50600
Radar WebKit Bug Importer
Comment 2
2025-09-17 06:54:25 PDT
<
rdar://problem/160771385
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug