LibWeb: Set timestamp for DOM Events

This commit is contained in:
Shannon Booth 2024-04-11 22:43:39 +02:00 committed by Andreas Kling
commit ccd16c847e
Notes: sideshowbarker 2024-07-17 08:27:05 +09:00
2 changed files with 6 additions and 2 deletions

View file

@ -1661,10 +1661,9 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Event>> Document::create_event(StringView i
// NOTE: These are done in the if-chain above
// 5. Let event be the result of creating an event given constructor.
// 6. Initialize events type attribute to the empty string.
// 7. Initialize events timeStamp attribute to the result of calling current high resolution time with thiss relevant global object.
// NOTE: This is handled by each constructor.
// FIXME: 7. Initialize events timeStamp attribute to the result of calling current high resolution time with thiss relevant global object.
// 8. Initialize events isTrusted attribute to false.
event->set_is_trusted(false);