Clean up the attachment code in the compose message window
Categories
(Thunderbird :: Message Compose Window, task)
Tracking
(thunderbird_esr78 wontfix, thunderbird86 wontfix)
People
(Reporter: aleca, Assigned: aleca)
References
Details
Attachments
(1 file, 5 obsolete files)
|
109.39 KB,
patch
|
aleca
:
review+
|
Details | Diff | Splinter Review |
There's some good clean up we can do for the code that handles the Attachment Bucket in the msgComposeCommand.js file.
This will be necessary to allow a better and simpler refactoring in bug 1640760.
| Assignee | ||
Comment 1•4 years ago
|
||
A simple code clean up that takes care of:
- Removes unnecessary helper methods.
- Properly defines the attachment bucket variable on load.
- Fixes the XHTML indentation.
Try run to see if I broke something: https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=3361fa18be537702ab82d76e1136ff58d13cb19c
| Assignee | ||
Comment 2•4 years ago
|
||
A failing test should be fixed: https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=390063ae8814e59379387b19b584d66ac64ae4fc
Sorry for the noise.
| Assignee | ||
Comment 3•4 years ago
|
||
Still some failures, I'll fix them.
Comment 4•4 years ago
|
||
Comment 5•4 years ago
|
||
Comment 6•4 years ago
|
||
Comment on attachment 9198788 [details] [diff] [review]
1688331-attachment-code.diff
Mid-air collision, sorry for the noise.
Comment 7•4 years ago
|
||
Comment on attachment 9198788 [details] [diff] [review]
1688331-attachment-code.diff
Something went wrong with review flags, sorry again.
r+ mkmelin
additional r+ thomas8
(both requiring some nits fixed)
| Assignee | ||
Comment 8•4 years ago
|
||
Patch updated with the suggested changes and try-run launched: https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=05ac7377733cb7f22f033d98752ff07903a9bb89
The only thing I haven't update is the thruty/falsy return value for return gAttachmentPane.selectedCount;, as we've been updating other parts with this same approach of returning the integer.
We're also using the same approach for all other conditions in this area so it's good to keep the consistency.
| Assignee | ||
Comment 9•4 years ago
|
||
File linted, sorry for the noise.
| Assignee | ||
Comment 10•4 years ago
|
||
Uh, lots of test failures >_>
| Assignee | ||
Comment 11•4 years ago
|
||
Tests were failing for a silly missing variable.
Everything looks good now: https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=646835335aeb1014284687a7e43150f95612c2ee
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 12•4 years ago
|
||
Little typo in the variable name.
Updated•4 years ago
|
Comment 13•4 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/b84ef4aee6c9
Clean up and refactor the code handling the attachment bucket in the compose window. r=mkmelin
Description
•