Closed Bug 779497 Opened 13 years ago Closed 12 years ago

The Add-ons Manager entries are multiplied if a search engine is added from context menu

Categories

(Firefox for Android Graveyard :: Add-on Manager, defect)

15 Branch
ARM
Android
defect
Not set
normal

Tracking

(firefox15 wontfix, firefox16 wontfix, firefox17 wontfix, firefox18 wontfix, firefox22 affected, firefox23 affected, firefox24 verified, fennec+)

RESOLVED FIXED
Firefox 24
Tracking Status
firefox15 --- wontfix
firefox16 --- wontfix
firefox17 --- wontfix
firefox18 --- wontfix
firefox22 --- affected
firefox23 --- affected
firefox24 --- verified
fennec + ---

People

(Reporter: paul.feher, Assigned: bnicholson)

References

Details

Attachments

(1 file)

Firefox Mobile Native 15.0b3 build1 (2012-07-31) Device: HTC Desire Z(Android 2.3.3)/Samsung Galaxy R (Android 2.3.4) Steps to reproduce: 1. Install any add-on(ex. cloud viewer). 2. Open Add-ons Manager. 3. In another tab visit www.cnet.com. 4. Long-tap in the search field to bring up the Context Menu. Choose "Add Search Engine". 5. Switch tab to Add-ons Manager. 6. Repeat steps 3 to 5. Expected results: After step 5 the list of search engines is displayed no entries are multiplied. Actual results: After step 6 the list of search engines is displayed and all entries appear multiplied.
(In reply to Paul Feher from comment #0) > 1. Visit www.google.com > 2. Long-tap in the search field to bring up the Context Menu. Choose "Add > Search Engine". > 3. Repeat steps 1 and 2. Fixed.
Summary: The Add-ons Manager entries are multiplied if a search engine is added from context menu → No limitation on additional entries created for manually added search engines
(In reply to Aaron Train [:aaronmt] from comment #1) > (In reply to Paul Feher from comment #0) > > 1. Visit www.google.com > > 2. Long-tap in the search field to bring up the Context Menu. Choose "Add > > Search Engine". > > 3. Repeat steps 1 and 2. > > Fixed. This issue refers to the fact that after installing a search engine from context menu all the entries that were previously present in the Add-ons manager list will be multiplied by 3. Please see the video for clearer steps to reproduce. http://youtu.be/IL4tbHi_L8A
Summary: No limitation on additional entries created for manually added search engines → The Add-ons Manager entries are multiplied if a search engine is added from context menu
For the the other issue, regarding the fact that a search engine can be added multiple times from the context menu I've logged the issue: Bug 779739
This disappears on restarting Firefox. Trunk is still affected by this issue.
Blocks: 725213
tracking-fennec: --- → ?
Assignee: nobody → bnicholson
tracking-fennec: ? → +
The multiplications disappear if one default search engine is disabled. Build ID: 17.0a2 (2012-08-29) Aurora Channel Device: Galaxy Nexus OS: Android 4.0.4
This is still an issue on Aurora 23.0a2 2013-05-15 on the HTC Desire Z (Android 2.3.3)
When adding a search engine, callbacks are fired three times: "engine-changed" is fired twice, then "engine-added" is fired after that. I haven't looked into why "engine-changed" is fired twice, or if we even "engine-added"/"engine-removed" if we already listen for "engine-changed", but I just left it alone for now. The problem is that AddonManager.getAddonsByTypes() is asynchronous, and we clear the addons list before the async callback happens. So the list is cleared three times, then the callbacks come in and the list is populated three times. We can fix this by moving the logic to clear the list inside of the callback.
Attachment #751219 - Flags: review?(wjohnston)
Comment on attachment 751219 [details] [diff] [review] Clear addons list inside of async callback Review of attachment 751219 [details] [diff] [review]: ----------------------------------------------------------------- Not my favorite patch. How hard would it be to find the right Addon item and just fix/update it?
Attachment #751219 - Flags: review?(wjohnston) → review+
(In reply to Wesley Johnston (:wesj) from comment #8) > Comment on attachment 751219 [details] [diff] [review] > Clear addons list inside of async callback > > Review of attachment 751219 [details] [diff] [review]: > ----------------------------------------------------------------- > > Not my favorite patch. How hard would it be to find the right Addon item and > just fix/update it? It would take a bit of refactoring, but definitely doable. But since this is the easy fix for the existing code that requires minimal time/changes, I'd prefer to just land this now, and we can handle optimizing things in a separate bug.
Filed bug 878968.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 24
Verified fixed on: Build: Firefox for Android 24.0a1 (2013-06-04) Device: Samsung Galaxy Nexus OS: Android 4.1.1
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: