mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-20 02:40:27 +00:00
This implements the following AOs: - Create a PasswordCredential from PasswordCredentialData. - Create a PasswordCredential from an HTMLFormElement. Which corresponds to these PasswordCredential ctors: - constructor(PasswordCredentialData) - constructor(HTMLFormElement)
16 lines
522 B
C++
16 lines
522 B
C++
/*
|
|
* Copyright (c) 2025, Kenneth Myhra <kennethmyhra@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/CredentialManagement/PasswordCredential.h>
|
|
|
|
namespace Web::CredentialManagement {
|
|
|
|
WebIDL::ExceptionOr<GC::Ref<PasswordCredential>> create_password_credential(JS::Realm& realm, GC::Ptr<HTML::HTMLFormElement> const&, URL::Origin);
|
|
WebIDL::ExceptionOr<GC::Ref<PasswordCredential>> create_password_credential(JS::Realm& realm, PasswordCredentialData const&, URL::Origin);
|
|
|
|
}
|