Closed Bug 640630 Opened 13 years ago Closed 13 years ago

about:home advertises add-ons that are installed already

Categories

(Firefox for Android Graveyard :: General, defect, P3)

ARM
Android

Tracking

(fennec-)

VERIFIED FIXED
Tracking Status
fennec - ---

People

(Reporter: tarend, Assigned: vingtetun)

Details

Attachments

(2 files)

(1) Install add-ons like "Personas" or "Home Links"
(2) Restart Browser

Result: about:home still shows the same add-ons in section "Add-ons for your Firefox"
Expected: installed add-ons won't be advertised again. Instead, other add-ons are shown.
Probably due to the fact we load those add-ons from a cache, which might not be updated soon enough.
.. we use the cache because connecting live to AMO kills startup performance.
At least we can prevent showing the addon if it is already installed, and if all the suggestions are installed we can hide the panel (and perform a cache update in the background)
(In reply to comment #3)
> At least we can prevent showing the addon if it is already installed, and if
> all the suggestions are installed we can hide the panel (and perform a cache
> update in the background)

We could do both of these things. Let's just make sure we don't regress performance.
Attached patch PatchSplinter Review
The patch filters the list of already installed addons
Assignee: nobody → 21
Attachment #532598 - Flags: review?(mark.finkle)
Comment on attachment 532598 [details] [diff] [review]
Patch

We'll need to watch for any slow down in the start page due to the AddonManager. I also wonder if we are updating the json cache file often enough. Right now it is updated during the addon update ping in components/AddonUpdateService.js 
http://mxr.mozilla.org/mozilla-central/source/mobile/components/AddonUpdateService.js#112
Attachment #532598 - Flags: review?(mark.finkle) → review+
http://hg.mozilla.org/mozilla-central/rev/ae15b103571c
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
VERIFIED FIXED on:

Build ID: Mozilla /5.0 (Android;Linux armv7l;rv:6.0a1) Gecko/20110524 Firefox/6.0a1 Fennec/6.0a1 

Device: HTC Desire Z (Android 2.2)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: