Bug 2066257 - clamp absurd logins timestamps - #7568
Conversation
bendk
left a comment
There was a problem hiding this comment.
I'd rather use the server time if we could, since local clocks can have all kinds of weird behavior.
I think that could be done during sync, probably right here. You could iterate through records and clamp the timestamp for local to the server timestamp. You could also do the same for mirror and inbound, although I'm not sure if that's needed.
3879cab to
8355278
Compare
|
Thank you, Ben, for these thoughts. Looking at it again I realized the problem could be fixed way simpler - this now just resets out-of-range timestamps to 0. |
Set timestamps out of range to 0, similar to how Desktop handles this.
|
I was able to find signals of these out of range timestamps in telemetry, I added the values to the testcases. Desktop also sets these wrong timestamps to 0: https://searchfox.org/firefox-main/source/toolkit/components/passwordmgr/LoginManager.sys.mjs#6 - I have adjusted the patch to apply the very same sanitization here. |
Pull Request checklist
[ci full]to the PR title.