Commit Graph

15 Commits

Author SHA1 Message Date
devgianlu
f14410c19f LibWeb: Do not pass GC::Ptr by reference
Also change it to `GC::Ref` since it's nonnull.
2026-02-22 14:55:30 -05:00
devgianlu
fd80acd730 LibWeb: Specify why origin is missing from credentials IDL
The spec is outdated with respect to what is actually implemented
by browsers. Point to a PR that aims to update the spec.
2026-02-22 14:55:30 -05:00
devgianlu
68c53f437e LibWeb: Make CredentialUserData accessors const
Also remove the default constructor.
2026-02-22 14:55:30 -05:00
devgianlu
1edf60bf08 LibWeb: Make {,Federated,Password}Credential accessors const 2026-02-22 14:55:30 -05:00
devgianlu
db5c63c774 LibWeb: Default impl of Credential.isConditionalMediationAvailable
Provide the default implementation for
`is_conditional_mediation_available`.
2026-02-22 14:55:30 -05:00
devgianlu
1fd1ea3b97 LibWeb: Remove Credential.willRequestConditionalCreation
This method has been removed from the spec as unused.
2026-02-22 14:55:30 -05:00
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