Closed
Bug 1037753
Opened 11 years ago
Closed 4 years ago
BrowserSearch does more work on the UI thread than it needs to
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: rnewman, Unassigned)
References
Details
(Whiteboard: [good second bug][lang=java])
Follow on from Bug 1018240.
handleMessage passes a chunk of JSON to the UI thread:
@Override
public void handleMessage(String event, final JSONObject message) {
if (event.equals("SearchEngines:Data")) {
ThreadUtils.postToUiThread(new Runnable() {
@Override
public void run() {
setSearchEngines(message);
}
});
}
}
setSearchEngines then does a relatively large amount of work (e.g., creating SearchEngine instances from the JSON), then finally doing the UI work that demands the UI thread.
It's probably worth doing some of this prior to invoking that runnable.
| Reporter | ||
Updated•10 years ago
|
Assignee: rnewman → nobody
Status: ASSIGNED → NEW
Whiteboard: [good second bug][lang=java]
Comment 1•4 years ago
|
||
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
| Assignee | ||
Updated•4 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
•