Closed Bug 809165 Opened 12 years ago Closed 12 years ago

Add a updatedTime field to the application object

Categories

(Core Graveyard :: DOM: Apps, defect)

defect
Not set
normal

Tracking

(blocking-basecamp:+, firefox18 fixed, firefox19 fixed)

RESOLVED FIXED
mozilla19
blocking-basecamp +
Tracking Status
firefox18 --- fixed
firefox19 --- fixed

People

(Reporter: fabrice, Assigned: fabrice)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file)

It will initially have the same value as installTime, and then be updated when... updating.
blocking-basecamp: --- → ?
We need this for a high-performance home-screen which also always keeps icons up-to-date.
blocking-basecamp: ? → +
Attached patch patchSplinter Review
With this patch we get the updateTime property updated on hosted apps when the new manifest is fetched, and on packaged apps once the new package is installed.

The default value of the property is 0.
Assignee: nobody → fabrice
Comment on attachment 678907 [details] [diff] [review]
patch

Review of attachment 678907 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/apps/src/Webapps.js
@@ +368,5 @@
>      this.removable = aApp.removable;
>      this.lastUpdateCheck = aApp.lastUpdateCheck ? aApp.lastUpdateCheck
>                                                  : Date.now();
> +    this.updateTime = aApp.updateTime ? aApp.updateTime
> +                                      : 0;

Make the fall back `aApp.installTime` please. r=me with that.
Attachment #678907 - Flags: review+
Attachment #678907 - Flags: superreview?(jonas)
Attachment #678907 - Flags: superreview?(jonas) → superreview+
https://hg.mozilla.org/mozilla-central/rev/a13f376cb3da
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Keywords: verifyme
QA Contact: jsmith
Keywords: verifyme
Whiteboard: [qa-]
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: