LibWeb: Implement IDBOpenDBRequest.onupgradeneeded

This commit is contained in:
Jamie Mansfield 2024-06-22 11:28:25 +01:00 committed by Andreas Kling
commit fe3962a64d
Notes: sideshowbarker 2024-07-16 21:30:46 +09:00
4 changed files with 16 additions and 1 deletions

View file

@ -39,4 +39,16 @@ WebIDL::CallbackType* IDBOpenDBRequest::onblocked()
return event_handler_attribute(HTML::EventNames::blocked);
}
// https://w3c.github.io/IndexedDB/#dom-idbopendbrequest-onupgradeneeded
void IDBOpenDBRequest::set_onupgradeneeded(WebIDL::CallbackType* event_handler)
{
set_event_handler_attribute(HTML::EventNames::upgradeneeded, event_handler);
}
// https://w3c.github.io/IndexedDB/#dom-idbopendbrequest-onupgradeneeded
WebIDL::CallbackType* IDBOpenDBRequest::onupgradeneeded()
{
return event_handler_attribute(HTML::EventNames::upgradeneeded);
}
}