Import logins from a JSON file
browser_import_logins_from_fileImport logins from a JSON file by inserting each {origin, user, password} entry directly through nsILoginManager, bypassing LoginCSVImport errors. Duplicate origin+username entries are merged or rejected by Firefox.
Instructions
Read a JSON file holding an array of {origin, user, password} and insert each one through nsILoginManager directly, bypassing LoginCSVImport (which fails with FILE_PERMISSIONS_ERROR in this build). Tell the truth about duplicates: Firefox silently merges or rejects entries whose origin+username already exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a JSON file: array of {origin, user, password} |