Bug 1606992 Comment 14 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

(In reply to Kai Engert (:KaiE:) from comment #12)
> We should try to reproduce, without requiring anyone to share their saved passwords.
> I guess we already have some automated test for stored passwords. We should tweak it locally to add a loop to create 1000 random entries. Then take that key database and logins file, copy it to a test profile, and use it for interactive testing, or we could share those files here.

You can easily import 1000 tests logins with the following code in the Browser Console:
```js
var logins = [];
for (let i = 0; i < 1000; i++) {
  logins.push({origin: `https://${i}.example.com`, username: `user${i}`, password: `password${i}`});
}
await LoginHelper.maybeImportLogins(logins);
```
(In reply to Kai Engert (:KaiE:) from comment #12)
> We should try to reproduce, without requiring anyone to share their saved passwords.
> I guess we already have some automated test for stored passwords. We should tweak it locally to add a loop to create 1000 random entries. Then take that key database and logins file, copy it to a test profile, and use it for interactive testing, or we could share those files here.

You can easily import 1000 test logins with the following code in the Browser Console:
```js
var logins = [];
for (let i = 0; i < 1000; i++) {
  logins.push({origin: `https://${i}.example.com`, username: `user${i}`, password: `password${i}`});
}
await LoginHelper.maybeImportLogins(logins);
```

Back to Bug 1606992 Comment 14