Revert "LibWeb: Add stub for IDBFactory.open"

This reverts commit f7beea1397.

This broke loading https://x.com/
This commit is contained in:
Andreas Kling 2024-05-22 19:44:48 +02:00
parent c83fc59534
commit 79870bc603
3 changed files with 2 additions and 16 deletions

View file

@ -7,7 +7,6 @@
#include <LibWeb/Bindings/IDBFactoryPrototype.h>
#include <LibWeb/Bindings/Intrinsics.h>
#include <LibWeb/IndexedDB/IDBFactory.h>
#include <LibWeb/IndexedDB/IDBOpenDBRequest.h>
namespace Web::IndexedDB {
@ -26,12 +25,4 @@ void IDBFactory::initialize(JS::Realm& realm)
WEB_SET_PROTOTYPE_FOR_INTERFACE(IDBFactory);
}
// https://w3c.github.io/IndexedDB/#dom-idbfactory-open
JS::NonnullGCPtr<IDBOpenDBRequest> IDBFactory::open(String const&, Optional<WebIDL::UnsignedLongLong>)
{
dbgln("FIXME: Implement IDBFactory::open");
auto& realm = this->realm();
return vm().heap().allocate<IDBOpenDBRequest>(realm, realm);
}
}

View file

@ -7,7 +7,6 @@
#pragma once
#include <LibWeb/Bindings/PlatformObject.h>
#include <LibWeb/WebIDL/Types.h>
namespace Web::IndexedDB {
@ -19,8 +18,6 @@ class IDBFactory : public Bindings::PlatformObject {
public:
virtual ~IDBFactory() override;
JS::NonnullGCPtr<IDBOpenDBRequest> open(String const& name, Optional<WebIDL::UnsignedLongLong> version = {});
protected:
explicit IDBFactory(JS::Realm&);

View file

@ -1,10 +1,8 @@
#import <IndexedDB/IDBOpenDBRequest.idl>
// https://w3c.github.io/IndexedDB/#idbfactory
[Exposed=(Window,Worker)]
interface IDBFactory {
[NewObject] IDBOpenDBRequest open(DOMString name,
optional [EnforceRange] unsigned long long version);
// FIXME: [NewObject] IDBOpenDBRequest open(DOMString name,
// optional [EnforceRange] unsigned long long version);
[FIXME, NewObject] IDBOpenDBRequest deleteDatabase(DOMString name);
[FIXME] Promise<sequence<IDBDatabaseInfo>> databases();