Closed
Bug 856728
Opened 11 years ago
Closed 11 years ago
TopSitesView.java executes a DB cursor on the main thread
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox21+ fixed, firefox22+ fixed, firefox23 fixed)
RESOLVED
FIXED
Firefox 23
People
(Reporter: mfinkle, Assigned: mfinkle)
References
Details
Attachments
(1 file)
1.57 KB,
patch
|
lucasr
:
review+
bajaj
:
approval-mozilla-aurora+
bajaj
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/widget/TopSitesView.java#325 This leads to problems. See bug 856585 comment 0.
Assignee | ||
Comment 1•11 years ago
|
||
This patch moves the cursor execution into the background part of the task. We pass the Map of thumbnails to onPostExecute. I still get thumbnails appearing with this patch, so I guess it didn't break anything. Nothing bad showing up in logcat either.
Attachment #732004 -
Flags: review?(lucasr.at.mozilla)
Comment 2•11 years ago
|
||
Comment on attachment 732004 [details] [diff] [review] patch Review of attachment 732004 [details] [diff] [review]: ----------------------------------------------------------------- Nice catch. The performance hit is probably coming from the image decoding that was happening on the UI thread i.e. the decodeByteArray() calls.
Attachment #732004 -
Flags: review?(lucasr.at.mozilla) → review+
Assignee | ||
Comment 3•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/72ed3ec3c90b
Comment 4•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/72ed3ec3c90b
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 23
Assignee | ||
Comment 5•11 years ago
|
||
Comment on attachment 732004 [details] [diff] [review] patch [Approval Request Comment] Bug caused by (feature/regressing bug #): User impact if declined: Executing DB code on the main thread leads to ANR hangs and possible DB locks Testing completed (on m-c, etc.): landed on m-c Risk to taking this patch (and alternatives if risky): some risk, but it's fairly isolated and a straight forward fix String or IDL/UUID changes made by this patch: none I'd like to see this on beta early in the cycle to see if it has any affect on crash stats.
Attachment #732004 -
Flags: approval-mozilla-beta?
Attachment #732004 -
Flags: approval-mozilla-aurora?
Comment 6•11 years ago
|
||
Approving per, https://bugzilla.mozilla.org/show_bug.cgi?id=843005#c10
Updated•11 years ago
|
Attachment #732004 -
Flags: approval-mozilla-beta?
Attachment #732004 -
Flags: approval-mozilla-beta+
Attachment #732004 -
Flags: approval-mozilla-aurora?
Attachment #732004 -
Flags: approval-mozilla-aurora+
Updated•11 years ago
|
status-firefox21:
--- → affected
status-firefox22:
--- → affected
tracking-firefox21:
--- → +
tracking-firefox22:
--- → +
Assignee | ||
Comment 7•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/2f602c0a84aa https://hg.mozilla.org/releases/mozilla-beta/rev/5085168d92eb
Updated•3 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
•