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.
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 precise creation_in_ms parameter, 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_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.
• 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 precise last_used_in_ms
parameter, 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 precise password_changed_in_ms parameter, 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.
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.