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)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 25
People
(Reporter: capella, Assigned: sriram)
References
Details
Attachments
(3 files, 1 obsolete file)
|
8.03 KB,
application/x-javascript
|
Details | |
|
3.13 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
|
1.92 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
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
| Reporter | ||
Comment 1•12 years ago
|
||
| Assignee | ||
Comment 2•12 years ago
|
||
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)
| Assignee | ||
Comment 3•12 years ago
|
||
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)
Updated•12 years ago
|
Attachment #772529 -
Flags: review?(mark.finkle) → review+
| Assignee | ||
Comment 4•12 years ago
|
||
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)
Updated•12 years ago
|
Attachment #779301 -
Flags: review?(mark.finkle) → review+
| Assignee | ||
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Assignee: nobody → sriram
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 25
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•