Closed
Bug 1698461
Opened 4 years ago
Closed 4 years ago
Improve selectors and performance of emailAddressPillOnPopupShown()
Categories
(Thunderbird :: Message Compose Window, task)
Tracking
(thunderbird_esr78 wontfix)
RESOLVED
FIXED
88 Branch
Tracking | Status | |
---|---|---|
thunderbird_esr78 | --- | wontfix |
People
(Reporter: thomas8, Assigned: thomas8)
References
Details
(Keywords: perf)
Attachments
(1 file)
3.51 KB,
patch
|
aleca
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #1696789 +++
I was looking at emailAddressPillOnPopupShown() while working on bug 1687432.
Let's simplify and cleanup here first. Better selectors are safer and faster, and we should not continue searching when we already know what we need to know.
Assignee | ||
Comment 1•4 years ago
|
||
Cleanup and improve performance of emailAddressPillOnPopupShown().
- Avoid using querySelectorAll() on unlimited pills where querySelector() suffices.
- Limit queries to #recipientsContainer instead of querying the entire document.
- Bail out early as soon as conditions are satisfied.
- Simplify the code.
Attachment #9209082 -
Flags: review?(alessandro)
Comment 2•4 years ago
|
||
Comment on attachment 9209082 [details] [diff] [review]
1698461_cleanup-emailAddressPillOnPopupShown.diff
Review of attachment 9209082 [details] [diff] [review]:
-----------------------------------------------------------------
This makes sense.
Thanks for the improvements.
Attachment #9209082 -
Flags: review?(alessandro) → review+
Assignee | ||
Updated•4 years ago
|
Keywords: checkin-needed-tb
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/97d9bf011825
Improve selectors and performance of emailAddressPillOnPopupShown(). r=aleca
Updated•4 years ago
|
Target Milestone: --- → 88 Branch
Comment 4•4 years ago
|
||
I've just noticed this patch got pushed with my username instead of Thomas's. Clearly I screwed up the landing somehow. I'm going to back it out and re-land.
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/87031e5a8f0c
Improve selectors and performance of emailAddressPillOnPopupShown(). r=aleca DONTBUILD
Updated•4 years ago
|
status-thunderbird_esr78:
--- → wontfix
You need to log in
before you can comment on or make changes to this bug.
Description
•