Closed
Bug 1383749
Opened 7 years ago
Closed 7 years ago
One-off buttons should be cached the first time
Categories
(Firefox :: Search, defect, P1)
Firefox
Search
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox54 | --- | unaffected |
firefox55 | --- | disabled |
firefox56 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
Details
(Keywords: regression, Whiteboard: [photon-performance])
Attachments
(1 file)
(deleted),
patch
|
mak
:
review+
|
Details | Diff | Splinter Review |
In bug 1312999 I added code to cache the one-off buttons and rebuild them only if the textbox size changed.
Unfortunately, the current caller code sets the popup before the textbox. Setting popup causes a _rebuild call, which can't cache the textbox size as the textbox setter hasn't been called yet. This causes the reflows in bug 1357054 to happen both the first and second time the awesomebar or searchbar panel is opened, instead of only the first time.
Updated•7 years ago
|
Status: NEW → ASSIGNED
Flags: qe-verify?
Priority: -- → P1
Whiteboard: [photon-performance]
Assignee | ||
Comment 1•7 years ago
|
||
This wasn't a problem before bug 1369705 as both the popup and textbox setters were called before we had any panel open.
Attachment #8889459 -
Flags: review?(mak77)
Assignee | ||
Updated•7 years ago
|
Blocks: 1369705, photon-perf-awesomebar
Assignee | ||
Updated•7 years ago
|
Keywords: regression
Comment 2•7 years ago
|
||
Comment on attachment 8889459 [details] [diff] [review]
Patch
Review of attachment 8889459 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/base/content/urlbarBindings.xml
@@ +1684,5 @@
> this._oneOffSearchesEnabled = enable;
> if (enable) {
> this.oneOffSearchButtons.telemetryOrigin = "urlbar";
> this.oneOffSearchButtons.style.display = "-moz-box";
> + // The popup setter will cause a _rebuild call, which uses .textbox
Maybe I'd rephrase both comments as
// Set .textbox first, since the popup setter will cause
// a _rebuild call that uses it.
otherwise it's a bit unclear what the comment tries to underline.
Attachment #8889459 -
Flags: review?(mak77) → review+
Pushed by florian@queze.net:
https://hg.mozilla.org/integration/mozilla-inbound/rev/91a2c24475fa
One-off buttons should be cached the first time, r=mak.
Updated•7 years ago
|
Iteration: --- → 56.4 - Aug 1
Comment 4•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
Updated•7 years ago
|
status-firefox54:
--- → unaffected
status-firefox55:
--- → disabled
status-firefox-esr52:
--- → unaffected
Updated•7 years ago
|
Flags: qe-verify? → qe-verify-
You need to log in
before you can comment on or make changes to this bug.
Description
•