mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-18 09:50:27 +00:00
38 lines
913 B
C++
38 lines
913 B
C++
/*
|
|
* Copyright (c) 2025, Altomani Gianluca <altomanigianluca@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibWeb/Bindings/Intrinsics.h>
|
|
#include <LibWeb/CredentialManagement/Credential.h>
|
|
|
|
namespace Web::CredentialManagement {
|
|
|
|
// https://www.w3.org/TR/credential-management-1/#dom-credential-isconditionalmediationavailable
|
|
GC::Ref<WebIDL::Promise> Credential::is_conditional_mediation_available(JS::VM& vm)
|
|
{
|
|
// 1. Return a promise resolved with false.
|
|
return WebIDL::create_resolved_promise(*vm.current_realm(), JS::Value(false));
|
|
}
|
|
|
|
Credential::~Credential() { }
|
|
|
|
Credential::Credential(JS::Realm& realm)
|
|
: PlatformObject(realm)
|
|
{
|
|
}
|
|
|
|
Credential::Credential(JS::Realm& realm, String id)
|
|
: PlatformObject(realm)
|
|
, m_id(move(id))
|
|
{
|
|
}
|
|
|
|
void Credential::initialize(JS::Realm& realm)
|
|
{
|
|
WEB_SET_PROTOTYPE_FOR_INTERFACE(Credential);
|
|
Base::initialize(realm);
|
|
}
|
|
|
|
}
|