mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-16 06:30:41 +00:00
Revert "LibWeb: Add stub for IDBFactory.open"
This reverts commit f7beea1397
.
This broke loading https://x.com/
This commit is contained in:
parent
c83fc59534
commit
79870bc603
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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&);
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue