palant / pfp

A simple and secure browser extension to be used with KeePass databases.
https://pfp.works/
Mozilla Public License 2.0
113 stars 14 forks source link

Issues on Android in 2.2.0 #105

Closed ghost closed 5 years ago

ghost commented 5 years ago

I updated to extension version 2.2.0 and everything works great on desktop (it also looks much nicer, so thanks!). However, on Firefox 68.0b7 on Android, the story is not so great:

palant commented 5 years ago

The first issue is expected - converting 100 passwords to stored passwords requires generating them first which takes time. The expected time would be below 1 second per password on mobile, but it depends a lot on hardware.

The second is quite problematic as it masks the actual error message. PfP tries to show an exclamation mark on its icon, something that isn't possible on Android.

palant commented 5 years ago

With this change the correct error message is being displayed. Also, I verified that sync works correctly on Firefox for Android in principle. So I hope you'll retry once the update is out, maybe the error message will help pinpointing the issue.

ghost commented 5 years ago

Thanks for looking into this and fixing the odd JS error!

The first issue is expected - converting 100 passwords to stored passwords requires generating them first which takes time. The expected time would be below 1 second per password on mobile, but it depends a lot on hardware.

My phone has a Snapdragon 835 (i.e. a fairly recent upper-end processor), so I don't think it should take multiple minutes unless there is something phenomenally wrong with Firefox beta right now (). Most of my passwords are either PfP 2.0 passwords already or they are stored passwords, so there are maybe 20 PfP 1.0 passwords in there.


About the Javascript error, I think I now saw the real error message on a desktop machine: "It seems that remote data has either been tampered with or reset to an older revision." It guess that between my devices, one wasn't updated yet to the new version and synced an old version of the password store. So that seems benign ultimately.

palant commented 5 years ago

It guess that between my devices, one wasn't updated yet to the new version and synced an old version of the password store.

That's strange, it shouldn't happen. The format version has been increased, so older clients shouldn't overwrite data written by newer ones.

palant commented 5 years ago

Either way, I guess #103 needs fixing...