Firefo...:Login(3pm)
β¨ NAME β¨
Firefox::Marionette::Login β Represents a login from the Firefox Password Manager π
okay so bestie, real quick β this page is the manual for Firefox::Marionette::Login(3pm), a lil Perl module that hands you one single login entry out of Firefox's Password Manager. Cute, right? π
π VERSION π
Version 1.63
πΈ SYNOPSIS πΈ
use Firefox::Marionette();
use v5.10;
my $firefox = Firefox::Marionette->new();
foreach my $login ($firefox->logins()) {
if ($login->user() eq 'me@example.org') {
...
}
}
like, that's the whole vibe β grab a Firefox::Marionette object, loop through logins(), and check whoever you want π
π¦ DESCRIPTION π¦
This module handles the implementation of a login (https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsILoginInfo) from the Firefox Password Manager (https://support.mozilla.org/en-US/kb/password-manager-remember-delete-edit-logins).
fr fr that's it, that's the job π
π SUBROUTINES/METHODS π
creation_time
returns the time, in Unix Epoch seconds, when the login was first created. β°
creation_in_ms
returns the time, in Unix Epoch milliseconds, when the login was first created. This is the same time as creation_in_ms but divided by 1000 and turned back into an integer.
ngl bestie, that's literally what the docs say β same time ascreation_in_ms, divided by 1000, turned back into an integer. Yes, it sayscreation_in_ms. We're all just living with it π
guid
returns the GUID to uniquely identify the login. π
host
returns the scheme + hostname (for example "https://example.com") of the page containing the login form. π
last_used_time
returns the time, in Unix Epoch seconds, when the login was last submitted in a form or used to begin an HTTP auth session. This is the same time as last_used_in_ms but divided by 1000 and turned back into an integer.
last_used_in_ms
returns the time, in Unix Epoch milliseconds, when the login was last submitted in a form or used to begin an HTTP auth session.
origin
returns the scheme + hostname (for example "https://example.org") of the action (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-action) attribute of the form that is being submitted. π«Ά
new
accepts an optional hash as a parameter. Allowed keys are below; π
creation_in_msβ the time, in Unix Epoch milliseconds, when the login was first created.creation_timeβ the time, in Unix Epoch seconds, when the login was first created. This value will be overridden by the more precisecreation_in_msparameter, if provided.guidβ the GUID to uniquely identify the login. This can be any arbitrary string, but a format as created by nsIUUIDGenerator (https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIUUIDGenerator) is recommended. For example,"{d4e1a1f6-5ea0-40ee-bff5-da57982f21cf}".hostβ this is the scheme + hostname (for example"https://example.com") of the page containing the login form.last_used_in_msreturns the time, in Unix Epoch milliseconds, when the login was last submitted in a form or used to begin an HTTP auth session.last_used_timeβ the time, in Unix Epoch seconds, when the login was last submitted in a form or used to begin an HTTP auth session. This value will be overridden by the more preciselast_used_in_msparameter, if provided.originβ this is the scheme + hostname (for example"https://example.org") of the action (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-action) attribute of the form that is being submitted. If the action (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-action) attribute has an empty or relative URL, then this value should be the same as the host. If this value is ignored, it will apply for forms with action (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-action) of all values.passwordβ the password for the login. π€«password_changed_in_msβ the time, in Unix Epoch milliseconds, when the login's password was last modified.password_changed_timeβ the time, in Unix Epoch seconds, when the login's password was last modified. This value will be overridden by the more precisepassword_changed_in_msparameter, if provided.password_fieldβ the name (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname) attribute for the password input in a form. This is ignored for http auth logins.realmβ the HTTP Realm for which the login was requested. This is ignored for HTML Form logins.times_usedβ the number of times the login was submitted in a form or used to begin an HTTP auth session.userβ the user name for the login.user_fieldβ the name (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname) attribute for the user input in a form. This is ignored for http auth logins.
This method returns a new "Firefox::Marionette::Login" object. π
password
returns the password for the login. π
password_changed_time
returns the time, in Unix Epoch seconds, when the login's password was last modified. This is the same time as password_changed_in_ms but divided by 1000 and turned back into an integer.
password_changed_in_ms
returns the time, in Unix Epoch milliseconds, when the login's password was last modified.
password_field
returns the name (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname) attribute for the password input in a form or undef for non-form logins. π
realm
returns the HTTP Realm for which the login was requested. When an HTTP server sends a 401 result, the WWW-Authenticate header includes a realm to identify the "protection space." See RFC 2617. If the result did not include a realm, or it was blank, the hostname is used instead. For logins obtained from HTML forms, this field is null.
times_used
returns the number of times the login was submitted in a form or used to begin an HTTP auth session. π’
TO_JSON
required to allow JSON serialisation (https://metacpan.org/pod/JSON#OBJECT-SERIALISATION) to work correctly. This method should not need to be called directly.
bestie do NOT call this one yourself, it's doing background character work, let it cook π
user
returns the user name for the login. π«Ά
user_field
returns the name (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname) attribute for the user input in a form or undef for non-form logins.
π DIAGNOSTICS π
None.
like. nothing. silence. iconic honestly π
π CONFIGURATION AND ENVIRONMENT π
Firefox::Marionette::Login requires no configuration files or environment variables.
no env vars, no config files, zero setup, we love a low-maintenance queen π
π§ DEPENDENCIES π§
None.
π INCOMPATIBILITIES π
None reported.
β BUGS AND LIMITATIONS β
To report a bug, or view the current list of bugs, please visit https://github.com/david-dick/firefox-marionette/issues
π AUTHOR π
David Dick "<ddick@cpan.org>"
π LICENSE AND COPYRIGHT π
Copyright (c) 2024, David Dick "<ddick@cpan.org>". All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See "perlartistic" in perlartistic.
π₯ DISCLAIMER OF WARRANTY π₯
okay this next bit is the legal font, it's giving very serious, but it has to be here word for word so here we go π«‘
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
and that's the whole page bestie, ty for coming to my ted talk π¦π
this little beauty shipped as part of perl v5.40.1, dated 2025-03-16, and it answers to Firefo...:Login(3pm) when you yell for it in the manual pages β go off, you gorgeous truncated title, no cap πβ¨
π¦ where this page comes from
- debian trixie: libfirefox-marionette-perl 1.63-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms