Minor thing about prefs usage in torbutton.js: extensions.torbutton.lastUpdateCheck is set to 1475974589.6 instead of 1475974589600.
Does this cause buggy behavior or is it just surprising that Date.now() / 1000 is stored without rounding to an integer?
All other prefs with lastUpdate use integers. If you treat e.g. milliseconds as microseconds somewhere, it may lead to some surprises.
Minor thing about prefs usage in torbutton.js: extensions.torbutton.lastUpdateCheck is set to 1475974589.6 instead of 1475974589600.
Does this cause buggy behavior or is it just surprising that Date.now() / 1000 is stored without rounding to an integer?
All other prefs with lastUpdate use integers. If you treat e.g. milliseconds as microseconds somewhere, it may lead to some surprises.
I would like to keep a new issue such as this one in a separate ticket so we don't lose it. That being said, all "lastUpdate" prefs on my TBB are in units of seconds, either rounded or not. What is unusual is that this is a string pref instead of an integer pref, but I don't think that is a problem.
I would like to keep a new issue such as this one in a separate ticket so we don't lose it.
OK, so you mean that TBB Team prefer anybody filing a new ticket for even minor inconsistencies, so that it'll look like a Q & A site with separate discussion for every question. Right?
That being said, all "lastUpdate" prefs on my TBB are in units of seconds, either rounded or not. What is unusual is that this is a string pref instead of an integer pref, but I don't think that is a problem.
Mozilla obviously uses string prefs for reals and big integers. And your pref is a string, so it points to it is expected to be a big int, perhaps, for milliseconds.
I would like to keep a new issue such as this one in a separate ticket so we don't lose it.
OK, so you mean that TBB Team prefer anybody filing a new ticket for even minor inconsistencies, so that it'll look like a Q & A site with separate discussion for every question. Right?
Yes, absolutely. If the issue is unrelated to the subject of the ticket, then it will be overlooked because it won't appear as a separate item in query results. Especially if the ticket, like this one, is already closed. "Out of sight, out of mind." The rule is: one ticket per issue.