Commit Graph

9 Commits

Author SHA1 Message Date
Kenneth Myhra
5cc3e136e4 LibWeb: Implement FederatedCredential ctor and corresponding AO
This implements the following AO:
- Create a FederatedCredential from FederatedCredentialInit.

Which corresponds to this FederatedCredential ctor:
- constructor(FederatedCredentialInit)
2026-01-08 13:10:35 +01:00
Kenneth Myhra
953ea1a463 LibWeb: Implement PasswordCredential ctors and corresponding AOs
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)
2026-01-08 13:10:35 +01:00
Kenneth Myhra
b2918dbe3c LibWeb: Introduce mixin implementation CredentialUserData
Previously the attributes for the mixin CredentialUserData was added to
the Credential implementation. Now they are moved to the
CredentialUserData implementation, and any *Credential implementations
which includes this mixin in IDL can now instead inherit from the
CredentialUserData class.
2026-01-08 13:10:35 +01:00
Kenneth Myhra
3fcdbedd77 LibWeb: Add ctor to Credential interface intitializing member data 2026-01-08 13:10:35 +01:00
Kenneth Myhra
c769fc404e LibWeb: Remove not implemented Credential::create() method 2026-01-08 13:10:35 +01:00
Kenneth Myhra
4dc3d9b163 LibWeb: Remove 'origin' attribute
Aligning with the Chromium implementation, deviating from the spec we
remove the 'origin' attribute from FederatedCredentialInit and
PasswordCredentialData.
2026-01-08 13:10:35 +01:00
Timothy Flynn
7280ed6312 Meta: Enforce newlines around namespaces
This has come up several times during code review, so let's just enforce
it using a new clang-format 20 option.
2025-05-14 02:01:59 -06:00
Andreas Kling
a6dfc74e93 LibWeb: Only set prototype once for object with IDL interface
Before this change, we were going through the chain of base classes for
each IDL interface object and having them set the prototype to their
prototype.

Instead of doing that, reorder things so that we set the right prototype
immediately in Foo::initialize(), and then don't bother in all the base
class overrides.

This knocks off a ~1% profile item on Speedometer 3.
2025-04-20 18:43:11 +02:00
devgianlu
da9eaf8788 LibWeb: Stub for Credential Management API
Stub out basic Credential Management APIs and import IDL tests.

Spec: https://w3c.github.io/webappsec-credential-management/
2025-02-05 13:18:47 -07:00