mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-27 21:42:53 +00:00
I saw that this not being implemented was causing a javascript exception to be thrown when loading https://profiler.firefox.com/. I was hoping that like the last time that partially implementing this interface would allow the page to load further, but it seems that this is unfortunately not the case this time! However, this may help other pages load slightly further, and puts some of the scaffolding in place for a proper implementation :^)
30 lines
701 B
C++
30 lines
701 B
C++
/*
|
|
* Copyright (c) 2024, Shannon Booth <shannon@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/Bindings/PlatformObject.h>
|
|
#include <LibWeb/WebIDL/Types.h>
|
|
|
|
namespace Web::IndexedDB {
|
|
|
|
// https://w3c.github.io/IndexedDB/#idbfactory
|
|
class IDBFactory : public Bindings::PlatformObject {
|
|
WEB_PLATFORM_OBJECT(IDBFactory, Bindings::PlatformObject);
|
|
JS_DECLARE_ALLOCATOR(IDBFactory);
|
|
|
|
public:
|
|
virtual ~IDBFactory() override;
|
|
|
|
JS::NonnullGCPtr<IDBOpenDBRequest> open(String const& name, Optional<WebIDL::UnsignedLongLong> version = {});
|
|
|
|
protected:
|
|
explicit IDBFactory(JS::Realm&);
|
|
|
|
virtual void initialize(JS::Realm&) override;
|
|
};
|
|
|
|
}
|