Bug 1513718 Comment 13 Edit History

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

The main issue is that we need to do the decryption starting at https://searchfox.org/mozilla-central/rev/25d491b7924493b5d4bedc07841a1cd92f271100/browser/components/migration/ChromeProfileMigrator.jsm#501-518

Look at the [Chromium code](https://source.chromium.org/chromium/chromium/src/+/master:components/os_crypt/os_crypt_linux.cc;l=26-52;drc=9fa2a355cb4d2124ad5abeaa2537a1f0c1602a03?originalUrl=https:%2F%2Fcs.chromium.org%2F) to understand the encryption used. It looks like there are actually two used (v10 and v11) so this bug should probably focus on one of them and the other can be done in a follow-up. Definitely only do one per commit.

To start I would try get the decryption unit test working: 
* https://searchfox.org/mozilla-central/rev/25d491b7924493b5d4bedc07841a1cd92f271100/browser/components/migration/tests/unit/test_Chrome_passwords.js#250-251
* https://searchfox.org/mozilla-central/rev/25d491b7924493b5d4bedc07841a1cd92f271100/browser/components/migration/tests/unit/xpcshell.ini#17,19

Then you can make the UI appear in a separate commit once the above is working.

Back to Bug 1513718 Comment 13