/* * Copyright (c) 2025, Altomani Gianluca * * SPDX-License-Identifier: BSD-2-Clause */ #include namespace Web::CredentialManagement { GC_DEFINE_ALLOCATOR(PasswordCredential); GC::Ref PasswordCredential::create(JS::Realm& realm) { return realm.create(realm); } // https://www.w3.org/TR/credential-management-1/#dom-passwordcredential-passwordcredential WebIDL::ExceptionOr> PasswordCredential::construct_impl(JS::Realm& realm, HTML::HTMLFormElement const&) { return realm.vm().throw_completion(JS::ErrorType::NotImplemented, "construct"sv); } // https://www.w3.org/TR/credential-management-1/#dom-passwordcredential-passwordcredential-data WebIDL::ExceptionOr> PasswordCredential::construct_impl(JS::Realm& realm, PasswordCredentialData const&) { return realm.vm().throw_completion(JS::ErrorType::NotImplemented, "construct"sv); } PasswordCredential::~PasswordCredential() { } PasswordCredential::PasswordCredential(JS::Realm& realm) : Credential(realm) { } void PasswordCredential::initialize(JS::Realm& realm) { Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(PasswordCredential); } }