Closed
Bug 1353897
Opened 7 years ago
Closed 7 years ago
Stop requesting preference fronts on toolbox close
Categories
(DevTools :: Framework, enhancement, P1)
DevTools
Framework
Tracking
(firefox55 fixed)
RESOLVED
FIXED
Firefox 55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: jryans, Assigned: jryans)
References
Details
Attachments
(1 file)
A preference front getter is referenced in the toolbox close, triggering listTabs and more when the toolbox is on its way out. We should skip all of this in the base (when no prefs are touched).
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=ae58f69f56e76f1a4d8b1557394355fa685d53fe
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8855058 [details] Bug 1353897 - Only destroy preference front if used. https://reviewboard.mozilla.org/r/126962/#review129842 Good catch, thanks! It is interesting to see that this pattern is quite often necessary. Something that needs to be lazily instanciate. But not just lazy, optionally lazy. We enventually want to do something only if it has been instanciated. I ended up landing various patch in the inspector for that. We were wondering with jdescottes if we could come up with some common helper, similar to loader.lazyGetter, to help implement this pattern and ease identifying it all over the place. ::: commit-message-b0432:9 (Diff revision 1) > +The toolbox destruction code path was written in such a way that it would > +request a preference front during toolbox destroy, only to immediately destroy > +the front right after. This is extra painful, since we send a `listTabs` > +request and other fun things as part of this. > + > +With this chance, we cache the preference front when it is first used, and we s/chance/change/
Attachment #8855058 -
Flags: review?(poirot.alex) → review+
Assignee | ||
Comment 4•7 years ago
|
||
Hmm, yes, a common helper sounds nice for this idiom!
Comment hidden (mozreview-request) |
Pushed by jryans@gmail.com: https://hg.mozilla.org/integration/autoland/rev/a484b0cfa3ad Only destroy preference front if used. r=ochameau
Comment 7•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a484b0cfa3ad
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•