Closed Bug 890671 Opened 12 years ago Closed 12 years ago

Timing issue causes addon icon not to load

Categories

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

x86_64
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 25

People

(Reporter: capella, Assigned: sriram)

References

Details

Attachments

(3 files, 1 obsolete file)

In some cases, commonly on FF start (system busy?), when an addon loads a menu item with an icon, then adds a second item to it / uses it as a parent, the logic that converts the original item to a submenu occurs before the original icon is loaded in it's background thread, causing it to be dropped, until a subsequent disable / enable, or browser start / stop reloads the menu. The (implied) "else" portion of this statement occurs when either there was no original icon, or this situation is encountered: http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/BrowserApp.java#1415 Because this hasn't completed yet: http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/BrowserApp.java#1438
Attached patch Patch (obsolete) — Splinter Review
It's not good to depend on MenuItem. But we know the item id. It's better to have it and find the menu item with that.
Attachment #772522 - Flags: review?(mark.finkle)
Depends on: 891256
Attached patch PatchSplinter Review
This is same as old patch. Moves the setIcon() to the UI thread.
Attachment #772522 - Attachment is obsolete: true
Attachment #772522 - Flags: review?(mark.finkle)
Attachment #772529 - Flags: review?(mark.finkle)
Attachment #772529 - Flags: review?(mark.finkle) → review+
Attached patch Patch: RebasedSplinter Review
A series of inbound closures followed by refactoring of Bitmap loading made the patch fail. The new patch is so simple (as all the bits around it are factored out), but essentially the same approach.
Attachment #779301 - Flags: review?(mark.finkle)
Attachment #779301 - Flags: review?(mark.finkle) → review+
Assignee: nobody → sriram
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 25
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: