"Last updated" field on Mozilla themes shows invalid date
Categories
(WebExtensions :: Themes, defect, P3)
Tracking
(firefox-esr68 unaffected, firefox75 wontfix, firefox76 wontfix, firefox77 fixed)
Tracking | Status | |
---|---|---|
firefox-esr68 | --- | unaffected |
firefox75 | --- | wontfix |
firefox76 | --- | wontfix |
firefox77 | --- | fixed |
People
(Reporter: marcia, Assigned: aji.yash13, Mentored)
References
(Regression)
Details
(Keywords: good-first-bug, regression)
Attachments
(2 files)
Seen while running nightly on macOS. See attached screenshot. "Invalid date" shows for the dark theme and for the default theme.
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Can confirm on local build Nightly, but on my installed Nightly, Beta and release I don't see this behaviour. I put a breakpoint where we set this and addon.updateDate
is Invalid Date
, so this seems expected, but obviously not useful.
This is a regression from bug 1543090, which stopped reading the modified time for built-in extensions. We could fix it in the add-on manager by hiding the date if it's invalid, but maybe built-in add-ons should have a valid date set for updateDate
?
Zombie, looks like you reviewed the patch from bug 1543090, do you think there should be a valid updateDate
on these add-ons? There's already a truthy check for the property, so maybe it should be a valid date or null?
Comment 2•5 years ago
|
||
Yeah, it looks this not a problem in existing profiles with new builds, since the DB already has the data, but i see the invalid date in a new profile.
I put a breakpoint where we set this and
addon.updateDate
isInvalid Date
, so this seems expected, but obviously not useful.
Where does the Invalid Date
string come from? It definitely sounds like that property should be null instead.
More generally, I don't expect us to need the actual date for any other use, since I believe the only way to update builtin addons is by installing a new version via the user profile.
And hiding a null date in addons details seems appropriate overall. I would expect that field to show the date of install or the latest update, which doesn't make sense for builtin addons that have not been updated.
Comment 3•5 years ago
|
||
Looks like the getter is always casting the value to a Date
[1]. Returning null there instead of creating a Date from undefined will hide it from about:addons. I'm not sure what test should be updated for that though.
Updated•5 years ago
|
Updated•4 years ago
|
Comment 5•4 years ago
|
||
Marked as good first bug and moved :zombie from assignee to mentor as agreed in the bug triaging meeting.
Comment 7•4 years ago
|
||
This is still a valid bug. There's a suggestion in comment 3 of what to do to fix it. Once you've got a patch you can upload it to phabricator and send the review to :zombie.
Updated•4 years ago
|
I have submitted a patch on phabricator, please let me know, if i am wrong somewhere and any further changes needed.
Comment 10•4 years ago
|
||
Thanks for the patch and sorry for the delay. Responded on phabricator.
Comment 11•4 years ago
|
||
Hi Ajitesh, thanks for letting other folks work on this bug. :) I'm formally unassigning you from this bug and opening it up for other contributors.
Updated•4 years ago
|
Comment 12•4 years ago
|
||
Bugbug thinks this bug is a regression, but please revert this change in case of error.
Comment 13•4 years ago
|
||
Hello, Can I work on this bug?
Thanks :)
Aarushi
Assignee | ||
Comment 14•4 years ago
|
||
Hello Aarushi, I have already submitted a patch for this bug and was waiting for response to my query in phabricator. I am working on this for a while, so can you please look over another bug to work on ?
Thanks
Comment 15•4 years ago
|
||
No problem :)
Updated•4 years ago
|
Updated•4 years ago
|
Comment 16•4 years ago
|
||
Pushed by btara@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d4ad032434f8 "Last updated" field on Mozilla themes shows invalid date r=zombie
Comment 17•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Updated•4 years ago
|
Updated•2 years ago
|
Description
•