mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Implement IDBOpenDBRequest.onupgradeneeded
This commit is contained in:
parent
30db7fb323
commit
fe3962a64d
Notes:
sideshowbarker
2024-07-16 21:30:46 +09:00
Author: https://github.com/jamierocks
Commit: fe3962a64d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/242
Reviewed-by: https://github.com/AtkinsSJ ✅
4 changed files with 16 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue