Closed
Bug 1312999
Opened 8 years ago
Closed 7 years ago
Cache one-off buttons instead of regenerating them at every popupopen
Categories
(Firefox :: Search, defect, P1)
Firefox
Search
Tracking
()
People
(Reporter: mak, Assigned: florian)
References
Details
(Keywords: perf, Whiteboard: [fxsearch][photon-performance][qa-commented])
Attachments
(1 file)
10.97 KB,
patch
|
adw
:
review+
|
Details | Diff | Splinter Review |
Now that the awesomebar uses one-off buttons, it would be better if we'd cache them. The search engines don't change so often and we should not pay the rebuild cost at every opening.
Reporter | ||
Updated•7 years ago
|
Whiteboard: [fxsearch] → [fxsearch][photon-performance]
Updated•7 years ago
|
Flags: qe-verify?
Priority: P3 → P2
Assignee | ||
Comment 1•7 years ago
|
||
We need to rebuild this list of one-offs either when the search settings change, or when the width of the panel changes. I haven't found any simple way to get the current panel's width without flushing (that's bug 1357054 anyway), but we can get the textbox size without flushing, and that's good enough to decide if we can skip rebuilding the one-offs. While I was at it, I also did some small optimizations: - avoid doing any DOM calls related to open search items when building the one-offs for the location bar panel - avoid using the Preferences.jsm module (it was used to support unicode characters in engine names, we can now use getStringPref instead).
Attachment #8859166 -
Flags: review?(adw)
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → florian
Status: NEW → ASSIGNED
Updated•7 years ago
|
Priority: P2 → P1
Updated•7 years ago
|
Iteration: --- → 55.4 - May 1
Flags: qe-verify? → qe-verify+
QA Contact: adrian.florinescu
Comment 2•7 years ago
|
||
Comment on attachment 8859166 [details] [diff] [review] Patch Review of attachment 8859166 [details] [diff] [review]: ----------------------------------------------------------------- LGTM
Attachment #8859166 -
Flags: review?(adw) → review+
Pushed by florian@queze.net: https://hg.mozilla.org/integration/mozilla-inbound/rev/6187bdf62907 Cache one-off buttons instead of regenerating them at every popupopen, r=adw.
Comment 4•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/6187bdf62907
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Assignee | ||
Comment 5•7 years ago
|
||
This bug affects the one-off buttons displayed at the bottom of the searchbar and awesomebar panels. The display should be correctly updated: - after changing search settings (hidding/showing one-off engines, changing the default, adding an engine...) - after things that change the panel size (resizing the window, resizing the searchbar, showing/hiding some toolbar buttons). - other stuff that may affect the textbox's appearance (changing theme?) It may make sense to verify at the same time as bug 1104325.
Assignee | ||
Updated•7 years ago
|
Whiteboard: [fxsearch][photon-performance] → [fxsearch][photon-performance][qa-commented]
Comment 6•7 years ago
|
||
Marking as verified on : 57.0a1 20170905220108 && 55.0.3 20170824053622 on Windows 7, Windows 10, Ubuntu 16.04. Regression & smoke testing covering the display of searchbar / awesomebar pannels: - default search settings, adding/removing search engines; - resizing panel size; - changing resolution + drag and drop + resizing; - OS high contrast themes + light/dark compact themes; Didn't cover high DPI, as it was already verified in bug 1104325, but will a test to the pre-beta test suite, so we can make sure nothing has been missed.
You need to log in
before you can comment on or make changes to this bug.
Description
•