mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-30 14:20:21 +00:00
LibWeb: Implement IDBOpenDBRequest.onblocked
This commit is contained in:
parent
1114bbf2f1
commit
30db7fb323
Notes:
sideshowbarker
2024-07-17 18:08:55 +09:00
Author: https://github.com/jamierocks
Commit: 30db7fb323
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/242
Reviewed-by: https://github.com/AtkinsSJ ✅
4 changed files with 20 additions and 1 deletions
|
@ -1,11 +1,13 @@
|
|||
/*
|
||||
* Copyright (c) 2024, Shannon Booth <shannon@serenityos.org>
|
||||
* Copyright (c) 2024, Jamie Mansfield <jmansfield@cadixdev.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibWeb/Bindings/IDBOpenDBRequestPrototype.h>
|
||||
#include <LibWeb/Bindings/Intrinsics.h>
|
||||
#include <LibWeb/HTML/EventNames.h>
|
||||
#include <LibWeb/IndexedDB/IDBOpenDBRequest.h>
|
||||
|
||||
namespace Web::IndexedDB {
|
||||
|
@ -25,4 +27,16 @@ void IDBOpenDBRequest::initialize(JS::Realm& realm)
|
|||
WEB_SET_PROTOTYPE_FOR_INTERFACE(IDBOpenDBRequest);
|
||||
}
|
||||
|
||||
// https://w3c.github.io/IndexedDB/#dom-idbopendbrequest-onblocked
|
||||
void IDBOpenDBRequest::set_onblocked(WebIDL::CallbackType* event_handler)
|
||||
{
|
||||
set_event_handler_attribute(HTML::EventNames::blocked, event_handler);
|
||||
}
|
||||
|
||||
// https://w3c.github.io/IndexedDB/#dom-idbopendbrequest-onblocked
|
||||
WebIDL::CallbackType* IDBOpenDBRequest::onblocked()
|
||||
{
|
||||
return event_handler_attribute(HTML::EventNames::blocked);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue