Closed
Bug 705725
Opened 14 years ago
Closed 14 years ago
Move preferences getting out of the startup path
Categories
(Firefox for Android Graveyard :: General, defect, P2)
Tracking
(firefox11 verified, firefox12 verified, firefox13 verified, fennec11+)
People
(Reporter: dougt, Assigned: bnicholson)
Details
(Keywords: testcase)
Attachments
(2 files, 1 obsolete file)
|
18.96 KB,
patch
|
dougt
:
review+
|
Details | Diff | Splinter Review |
|
216 bytes,
text/html
|
Details |
When profiling, i saw that we fetch preferences from gecko during startup. This is so that the preferences menu doesn't have to block on waiting for any gecko preferences. In this patch, i simply move it out of the startup path by delaying the execution for 5 seconds.
| Reporter | ||
Comment 1•14 years ago
|
||
Attachment #577294 -
Flags: review?(blassey.bugs)
Comment 2•14 years ago
|
||
Comment on attachment 577294 [details] [diff] [review]
v.1
5 secs seems arbitrarily long, considering we don't even attempt to load prefs until gecko is loaded and the <browser> is created.
I don't think we should be making delayed loads like this unless we know it helps. I'm not interested in gaming the startup metrics.
Attachment #577294 -
Flags: review?(blassey.bugs) → review-
Comment 3•14 years ago
|
||
Instead, we decided to switch back to the old method of loading the preferences from gecko when the preferences view is created. We need to figure out how to keep bug 701826 from regressing though.
We need to show a throbber or something while the preferences are waiting to load from gecko. This approach does remove the pref loading from the startup path.
Updated•14 years ago
|
Assignee: doug.turner → bnicholson
| Assignee | ||
Comment 4•14 years ago
|
||
This is mostly a backout of bug 701826. I've greyed out the preferences before they're loaded to make it a bit cleaner. On a Droid Pro, the loading of the preferences page is usually instantaneous; I notice a small delay at times, but only when loading a page.
For an exaggerated example, you can open the preferences screen while this page is looping:
http://thebnich.com/loop.html
Attachment #577294 -
Attachment is obsolete: true
Attachment #577795 -
Flags: review?(doug.turner)
| Assignee | ||
Comment 5•14 years ago
|
||
Test case attached.
| Reporter | ||
Updated•14 years ago
|
Attachment #577796 -
Attachment description: test case → test case - DO NOT CLICK ON ME
Comment 6•14 years ago
|
||
Comment on attachment 577795 [details] [diff] [review]
patch v2
* Can we make the PreferenceScreen enabled="false" ? Instead of each category.
>+ sIsGeckoReady = true;
>+ mMainHandler.post(new Runnable() {
>+ public void run() {
>+ if (sMenu != null)
>+ sMenu.findItem(R.id.preferences).setEnabled(true);
>+ }
>+ });
> setLaunchState(GeckoApp.LaunchState.GeckoRunning);
The mMainHandler code block is indented 1 space too much
| Reporter | ||
Updated•14 years ago
|
Attachment #577795 -
Flags: review?(doug.turner) → review+
Updated•14 years ago
|
Priority: -- → P2
| Assignee | ||
Comment 7•14 years ago
|
||
Landed with mfinkle's changes.
http://hg.mozilla.org/projects/birch/rev/5502a1f05757
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
tracking-fennec: --- → 11+
Updated•14 years ago
|
status-firefox11:
--- → fixed
Comment 8•14 years ago
|
||
Verified fixed on:
Firefox 13.0a1 (2012-02-20)
20120220031231
http://hg.mozilla.org/mozilla-central/rev/561771f01881
Firefox 12.0a2 (2012-02-20)
20120220042008
http://hg.mozilla.org/releases/mozilla-aurora/rev/dfb7c3567c49
Firefox 11.0 (2012-02-19)
20120219151859
http://hg.mozilla.org/releases/mozilla-beta/rev/6df75f4d5ccc
--
Device: Motorola Droid PRO
OS: Android 2.3.3
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
•