Closed
Bug 889564
Opened 10 years ago
Closed 10 years ago
ANR: LightweightTheme.handleMessage can block the Gecko thread
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 25
People
(Reporter: jchen, Assigned: mfinkle)
Details
(Whiteboard: [ANR])
Attachments
(1 file)
2.84 KB,
patch
|
sriram
:
review+
|
Details | Diff | Splinter Review |
Because LightweightTheme.handleMessage runs on the Gecko thread, when it calls BitmapUtils.decodeUrl, the Gecko thread can get blocked as well waiting for the resource. Blocking Gecko is bad and can result in unresponsiveness and ANRs. I think we should do decodeUrl on the background thread.
Assignee | ||
Comment 1•10 years ago
|
||
Uses a background thread. I thought about using UiAsyncTask, but this is the same and we already had mHandler in the code, so just manually making a post to the background thread seemed simpler.
Assignee: nobody → mark.finkle
Attachment #770626 -
Flags: review?(sriram)
Updated•10 years ago
|
Attachment #770626 -
Flags: review?(sriram) → review+
Assignee | ||
Comment 2•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/de42663c8b44
Comment 3•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/de42663c8b44
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 25
Updated•2 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
•