diff --git a/Libraries/LibWeb/CredentialManagement/PasswordCredential.cpp b/Libraries/LibWeb/CredentialManagement/PasswordCredential.cpp index 7e3b256979..d65a49fe38 100644 --- a/Libraries/LibWeb/CredentialManagement/PasswordCredential.cpp +++ b/Libraries/LibWeb/CredentialManagement/PasswordCredential.cpp @@ -12,7 +12,7 @@ namespace Web::CredentialManagement { GC_DEFINE_ALLOCATOR(PasswordCredential); // https://www.w3.org/TR/credential-management-1/#dom-passwordcredential-passwordcredential -WebIDL::ExceptionOr> PasswordCredential::construct_impl(JS::Realm& realm, GC::Ptr const& form) +WebIDL::ExceptionOr> PasswordCredential::construct_impl(JS::Realm& realm, GC::Ref form) { // 1. Let origin be the current settings object's origin. auto origin = HTML::current_principal_settings_object().origin(); diff --git a/Libraries/LibWeb/CredentialManagement/PasswordCredential.h b/Libraries/LibWeb/CredentialManagement/PasswordCredential.h index b75a2306c4..73987dd579 100644 --- a/Libraries/LibWeb/CredentialManagement/PasswordCredential.h +++ b/Libraries/LibWeb/CredentialManagement/PasswordCredential.h @@ -23,7 +23,7 @@ class PasswordCredential final GC_DECLARE_ALLOCATOR(PasswordCredential); public: - [[nodiscard]] static WebIDL::ExceptionOr> construct_impl(JS::Realm&, GC::Ptr const&); + [[nodiscard]] static WebIDL::ExceptionOr> construct_impl(JS::Realm&, GC::Ref); [[nodiscard]] static WebIDL::ExceptionOr> construct_impl(JS::Realm&, PasswordCredentialData const&); virtual ~PasswordCredential() override; diff --git a/Libraries/LibWeb/CredentialManagement/PasswordCredentialOperations.cpp b/Libraries/LibWeb/CredentialManagement/PasswordCredentialOperations.cpp index 78bb8ea08f..f191be45f6 100644 --- a/Libraries/LibWeb/CredentialManagement/PasswordCredentialOperations.cpp +++ b/Libraries/LibWeb/CredentialManagement/PasswordCredentialOperations.cpp @@ -11,7 +11,7 @@ namespace Web::CredentialManagement { // https://www.w3.org/TR/credential-management-1/#abstract-opdef-create-a-passwordcredential-from-an-htmlformelement -WebIDL::ExceptionOr> create_password_credential(JS::Realm& realm, GC::Ptr const& form, URL::Origin origin) +WebIDL::ExceptionOr> create_password_credential(JS::Realm& realm, GC::Ref form, URL::Origin origin) { // 1. Let data be a new PasswordCredentialData dictionary. PasswordCredentialData data; diff --git a/Libraries/LibWeb/CredentialManagement/PasswordCredentialOperations.h b/Libraries/LibWeb/CredentialManagement/PasswordCredentialOperations.h index 5ea33e8963..921edd26b4 100644 --- a/Libraries/LibWeb/CredentialManagement/PasswordCredentialOperations.h +++ b/Libraries/LibWeb/CredentialManagement/PasswordCredentialOperations.h @@ -10,7 +10,7 @@ namespace Web::CredentialManagement { -WebIDL::ExceptionOr> create_password_credential(JS::Realm& realm, GC::Ptr const&, URL::Origin); +WebIDL::ExceptionOr> create_password_credential(JS::Realm& realm, GC::Ref, URL::Origin); WebIDL::ExceptionOr> create_password_credential(JS::Realm& realm, PasswordCredentialData const&, URL::Origin); }