Closed
Bug 1008169
Opened 10 years ago
Closed 9 years ago
Font selection and font size dropdowns are reacting very slowly on press up/down
Categories
(Firefox :: Settings UI, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox41 | --- | verified |
People
(Reporter: whimboo, Assigned: Gijs)
References
Details
(Keywords: perf, Whiteboard: [sf-hackweek])
Attachments
(2 files, 3 obsolete files)
In the Content pane of about:preferences, when you select font selection or size dropdown, the update is happening very slowly. 1. Open about:preferences 2. Go to the content pane 3. Hit accesskey D to select the font selection dropdown 4. Press up and down keys multiple times With step 4 you will notice a 1 second delay until the next font gets selected.
Updated•10 years ago
|
Blocks: ship-incontent-prefs
Comment 1•10 years ago
|
||
Peregrino, can you take this? I think we can fix this by disabling instantApply while the font-selection dropdown is open.
Flags: needinfo?(colmeiro)
Comment 2•10 years ago
|
||
Yeah, I'll take a look
Assignee: nobody → colmeiro
Flags: needinfo?(colmeiro)
Comment 3•10 years ago
|
||
Removing from blocking since the severity is low and the frequency of occurrence is low.
No longer blocks: ship-incontent-prefs
Comment 4•10 years ago
|
||
Peregrino, are you planning on picking this back up or should I unassign it?
Flags: needinfo?(colmeiro)
Updated•10 years ago
|
Mentor: jaws
Updated•10 years ago
|
Whiteboard: [sf-hackweek]
Assignee | ||
Comment 5•10 years ago
|
||
Assuming Peregrino is busy, and unassigning for now. Let us know if we're wrong!
Assignee: colmeiro → nobody
Flags: needinfo?(colmeiro)
Comment 6•9 years ago
|
||
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Attachment #8579513 -
Flags: review?(gijskruitbosch+bugs)
Assignee | ||
Comment 7•9 years ago
|
||
Comment on attachment 8579513 [details] [diff] [review] Patch Review of attachment 8579513 [details] [diff] [review]: ----------------------------------------------------------------- Per rl discussion, it would be better if we could just make this do the right thing rather than avoiding doing everything it's currently doing.
Attachment #8579513 -
Flags: review?(gijskruitbosch+bugs) → review-
Comment 8•9 years ago
|
||
Through some more adhoc testing it appears that the cost here comes from applying these changes to all of the open tabs in the current session. I've made the previous patch simpler but stayed with the initial approach.
Attachment #8579513 -
Attachment is obsolete: true
Attachment #8579624 -
Flags: review?(gijskruitbosch+bugs)
Assignee | ||
Updated•9 years ago
|
Attachment #8579624 -
Flags: review?(gijskruitbosch+bugs) → review+
Updated•9 years ago
|
Mentor: jaws
Keywords: checkin-needed
Comment 10•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/ba4279ef4045
Keywords: checkin-needed
Whiteboard: [sf-hackweek] → [sf-hackweek][fixed-in-fx-team]
Assignee | ||
Comment 11•9 years ago
|
||
I just looked at this again, and now I'm confused. How does the blur ever fire on the preference element for the language group? :-\
Flags: needinfo?(jaws)
Comment 12•9 years ago
|
||
I'm going to double-check/verify this when it hits Nightly.
https://hg.mozilla.org/mozilla-central/rev/ba4279ef4045
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Whiteboard: [sf-hackweek][fixed-in-fx-team] → [sf-hackweek]
Target Milestone: --- → Firefox 39
Comment 14•9 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #11) > I just looked at this again, and now I'm confused. How does the blur ever > fire on the preference element for the language group? :-\ This didn't fix it, we'll need to get a better fix here. Backed out, https://hg.mozilla.org/integration/fx-team/rev/db20ba3a49d2
Flags: needinfo?(jaws)
Updated•9 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•9 years ago
|
status-firefox39:
fixed → ---
Updated•9 years ago
|
Target Milestone: Firefox 39 → ---
Updated•9 years ago
|
Points: --- → 5
Priority: -- → P3
Comment 15•9 years ago
|
||
Attachment #8579624 -
Attachment is obsolete: true
Attachment #8593494 -
Flags: review?(gijskruitbosch+bugs)
Assignee | ||
Comment 16•9 years ago
|
||
Comment on attachment 8593494 [details] [diff] [review] Patch Review of attachment 8593494 [details] [diff] [review]: ----------------------------------------------------------------- r- because of the multiple-elements-in-a-pane issue. I wonder if we should make this opt-in somehow... ::: toolkit/content/widgets/preferences.xml @@ +1265,5 @@ > > + <field name="DeferredTask" readonly="true"> > + let targetObj = {}; > + Components.utils.import("resource://gre/modules/DeferredTask.jsm", targetObj); > + targetObj.DeferredTask; I wonder if it's worth making this a lazy getter. @@ +1272,5 @@ > <method name="userChangedValue"> > <parameter name="aElement"/> > <body> > <![CDATA[ > + if (!this._persistPreferenceDeferredTask) { This will create the task regardless of whether this is an element with a preference associated with it. The other thing that I believe is wrong here is that this method lives on the prefpane. It could thus be called twice for different elements (with a different aElement), and because of the caching here it will always save the value for the first element it gets called about, not any of the others. I also anticipate making this async will cause test failures, but I'm not 100% sure about that.
Attachment #8593494 -
Flags: review?(gijskruitbosch+bugs) → review-
Updated•9 years ago
|
Assignee: jaws → nobody
Status: REOPENED → NEW
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(gijskruitbosch+bugs)
Assignee | ||
Comment 17•9 years ago
|
||
/r/8411 - Bug 1008169 - Font selection and font size dropdowns are reacting very slowly on press up/down,r?jaws Pull down this commit: hg pull -r 1496344a0f4c2f193e8ba311f05b76659a1671ad https://reviewboard-hg.mozilla.org/gecko/
Attachment #8603303 -
Flags: review?(jaws)
Assignee | ||
Comment 18•9 years ago
|
||
Same kind of solution, but keeping the task per-element, and a set on the pane so we can force-save all of them when we call writePreferences.
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Iteration: --- → 40.3 - 11 May
Flags: needinfo?(gijskruitbosch+bugs)
Assignee | ||
Comment 19•9 years ago
|
||
try-autoland on reviewboard! \o/ https://treeherder.mozilla.org/#/jobs?repo=try&revision=1496344a0f4c
Comment 20•9 years ago
|
||
Comment on attachment 8603303 [details] MozReview Request: bz://1008169/Gijs https://reviewboard.mozilla.org/r/8409/#review7107 ::: toolkit/content/widgets/preferences.xml:1304 (Diff revision 1) > - var prefVal = preference.getElementValue(element); > + element._deferredValueUpdateTask = new this.DeferredTask(this._deferredValueUpdate.bind(this, element), 1000); I thought you were going to make this opt-in per element, instead of making all elements get this.
Attachment #8603303 -
Flags: review?(jaws)
Assignee | ||
Comment 21•9 years ago
|
||
(In reply to Jared Wein [:jaws] (please needinfo? me) from comment #20) > Comment on attachment 8603303 [details] > MozReview Request: bz://1008169/Gijs > > https://reviewboard.mozilla.org/r/8409/#review7107 > > ::: toolkit/content/widgets/preferences.xml:1304 > (Diff revision 1) > > - var prefVal = preference.getElementValue(element); > > + element._deferredValueUpdateTask = new this.DeferredTask(this._deferredValueUpdate.bind(this, element), 1000); > > I thought you were going to make this opt-in per element, instead of making > all elements get this. Good point!
Flags: needinfo?(gijskruitbosch+bugs)
Assignee | ||
Comment 22•9 years ago
|
||
Comment on attachment 8603303 [details] MozReview Request: bz://1008169/Gijs /r/8411 - Bug 1008169 - Font selection and font size dropdowns are reacting very slowly on press up/down,r?jaws Pull down this commit: hg pull -r 7ae9afb43ab0babd035f0b729bb4e9bac04f1a26 https://reviewboard-hg.mozilla.org/gecko/
Attachment #8603303 -
Flags: review?(jaws)
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(gijskruitbosch+bugs)
Assignee | ||
Comment 23•9 years ago
|
||
Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=cf9c447853bd
Updated•9 years ago
|
Attachment #8603303 -
Flags: review?(jaws) → review+
Comment 24•9 years ago
|
||
Comment on attachment 8603303 [details] MozReview Request: bz://1008169/Gijs https://reviewboard.mozilla.org/r/8409/#review7685 Ship It!
https://hg.mozilla.org/mozilla-central/rev/e734bdd5e82b
Status: ASSIGNED → RESOLVED
Closed: 9 years ago → 9 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 41
Updated•9 years ago
|
Iteration: 40.3 - 11 May → 41.1 - May 25
Flags: qe-verify?
Flags: firefox-backlog+
Assignee | ||
Updated•9 years ago
|
Flags: qe-verify?
Flags: qe-verify+
Flags: in-testsuite-
Updated•9 years ago
|
QA Contact: camelia.badau
Comment 27•9 years ago
|
||
Verified fixed on Windows 7 64bit and Ubuntu 13.10 32bit using latest Nightly 41.0a1 (buildID: 20150602055237).
Status: RESOLVED → VERIFIED
Assignee | ||
Comment 28•9 years ago
|
||
Attachment #8603303 -
Attachment is obsolete: true
Attachment #8618158 -
Flags: review+
Assignee | ||
Comment 29•9 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•